Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ladeirarodolfo authored Nov 15, 2023
1 parent 568f91e commit 614206e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
name: Node.js Package

on:
release:
types: [created]
push:
branches:
- main

jobs:
build:
Expand All @@ -14,8 +15,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn build

publish-gpr:
needs: build
Expand All @@ -27,9 +29,9 @@ 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
- run: node ./publish-version.mjs
- run: node ./publish-package.mjs
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 614206e

Please sign in to comment.