Skip to content

Commit 5634c79

Browse files
committed
Updated workflows
1 parent 49abb59 commit 5634c79

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/publish-to-npm.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,31 @@ run-name: "Publishing ${{ github.event.release.tag_name }} to npm"
44

55
on:
66
release:
7-
types: ["published"]
7+
types: [ "published" ]
88

99
permissions:
10-
{}
10+
{ }
1111

1212
jobs:
1313
publish-to-npm:
1414
runs-on: "ubuntu-latest"
1515
steps:
16-
- uses: "actions/checkout@v4"
17-
- uses: "actions/setup-node@v4"
16+
- name: "Checkout repository"
17+
uses: "actions/checkout@v4"
18+
19+
- name: "Setup Node.js"
20+
uses: "actions/setup-node@v4"
1821
with:
1922
node-version-file: "package.json"
2023
registry-url: "https://registry.npmjs.org"
21-
- run: "npm install"
22-
- run: "npm publish"
24+
25+
- name: "Install dependencies"
26+
run: "npm install --ignore-scripts"
27+
28+
- name: "Build package"
29+
run: "npm run build"
30+
31+
- name: "Publish package to npm"
32+
run: "npm publish"
2333
env:
2434
NODE_AUTH_TOKEN: "${{ secrets.NODE_AUTH_TOKEN }}"

.github/workflows/sponsor-gated-support.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
steps:
2222
- name: "Checkout repository"
2323
uses: "actions/checkout@v4"
24+
2425
- name: "Show current workflow directory"
2526
run: "ls -la"
27+
2628
- name: "Check support issues"
2729
uses: "mrjackyliang/sponsor-gated-support@v1.0.1"
2830
with:

0 commit comments

Comments
 (0)