Skip to content

Commit ff36589

Browse files
committed
Update workflow
1 parent 97925e8 commit ff36589

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
name: Publish
1+
name: Publish Package to npmjs
22
on:
33
release:
44
types: [created]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
811
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1114
with:
12-
node-version: '14.x'
13-
registry-url: 'https://registry.npmjs.org'
15+
node-version: "16.x"
16+
registry-url: "https://registry.npmjs.org"
1417
- run: yarn install
1518
- run: yarn npm publish --access public
1619
env:
1720
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18-
- uses: actions/setup-node@v2
21+
- uses: actions/setup-node@v3
1922
with:
20-
registry-url: 'https://npm.pkg.github.com'
23+
node-version: "16.x"
24+
registry-url: "https://npm.pkg.github.com"
2125
- run: yarn npm publish --access public
2226
env:
2327
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)