Skip to content

Commit b255cb8

Browse files
authored
Update GitHub action to publich the package to NPM
1 parent be43354 commit b255cb8

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ jobs:
99
name: publish
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: checkout
13-
uses: actions/checkout@v2.1.1
14-
- name: node
15-
uses: actions/setup-node@v1.4.2
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
1617
with:
17-
node-version: 12
18+
node-version: 20
1819
registry-url: https://registry.npmjs.org
19-
- name: publish
20+
21+
- name: Publish to npm
2022
run: npm publish --access public
2123
env:
2224
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)