Skip to content

Commit

Permalink
ci: fix the ci for good?
Browse files Browse the repository at this point in the history
  • Loading branch information
JiPaix committed May 4, 2024
1 parent 1198729 commit 1211eff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,19 @@ jobs:
npm run build
publish:
needs: [lint, build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: 'https://registry.npmjs.org'
- uses: JiPaix/[email protected]
id: version-updated
with:
path: package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
touch .env
echo PA_TOKEN=${{ secrets.PA_TOKEN }} >> .env
Expand All @@ -57,5 +62,7 @@ jobs:
npm install
npm run build
npm publish
if: steps.version-updated.outputs.has-updated
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1211eff

Please sign in to comment.