Skip to content

Commit

Permalink
feat: changing npm publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpalomares committed May 6, 2024
1 parent aeb2107 commit 36a56fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/_npm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout current git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of REPO_ACCESS_TOKEN
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository
- name: Use Node.js with Github Packages as registry url
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.nodeVersion }}
registry-url: https://npm.pkg.github.com
scope: ${{ inputs.scope }}
- name: Install npm dependencies
run: npm i
env:
NPM_GITHUB_TOKEN: ${{ secrets.githubAuthToken }}
NODE_AUTH_TOKEN: ${{ secrets.githubAuthToken }}
- if: inputs.buildBeforePublishing
name: Run build
run: npm run build
Expand Down

0 comments on commit 36a56fc

Please sign in to comment.