Skip to content

Commit b807fb0

Browse files
updated action
1 parent ac7fc69 commit b807fb0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
# Setup .npmrc file to publish to GitHub Packages
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
registry-url: 'https://npm.pkg.github.com'
20+
- run: yarn && yarn build
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)