Skip to content

Commit

Permalink
Cleanup ghpkg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hUwUtao authored Aug 5, 2023
1 parent 21cde44 commit 1162291
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/ghpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,10 @@
name: Node.js Package

on:
release:
types: [created]
push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -28,9 +16,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 1162291

Please sign in to comment.