Skip to content

Commit

Permalink
Create npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Jul 2, 2023
1 parent 4a54bbb commit edbfac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
Expand All @@ -12,22 +15,21 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
- run: npm install
- run: npm run build

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
/src/.umi-test
/dist
.swc
package-lock.json

1 comment on commit edbfac7

@vercel
Copy link

@vercel vercel bot commented on edbfac7 Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.