Skip to content

Commit

Permalink
fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Jazi committed May 3, 2024
1 parent 87ef4fd commit f55c5a3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created]

jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,6 +14,12 @@ jobs:
node-version: 20
- run: npm ci
- run: npm test
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: dist


publish-gpr:
needs: build
Expand All @@ -27,8 +33,12 @@ jobs:
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
scope: '@openreplyde'
- run: npm ci
- run: npm run build
- uses: actions/download-artifact@v3
with:
name: build-artifacts
path: dist
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit f55c5a3

Please sign in to comment.