Skip to content

Commit

Permalink
action fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ErionTp committed Aug 16, 2023
1 parent c7e9073 commit d9b9f9e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# 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:
push:
branches:
- main # or master, depending on your default branch
branches: [main]

jobs:
build:
Expand All @@ -17,6 +13,8 @@ jobs:
with:
node-version: 16
- run: npm ci
#- run: npm test
- run: npm run build # Assuming you have a build script in package.json

publish-gpr:
needs: build
Expand All @@ -33,4 +31,4 @@ jobs:
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit d9b9f9e

Please sign in to comment.