Skip to content

Commit

Permalink
feat: Fix installation of dependencies in release workflow., add auth…
Browse files Browse the repository at this point in the history
…entication with Registry in release workflow., ensure registry access in release workflow. and remove pre-release step and add publish step in release workflow.
  • Loading branch information
danilowoz committed Mar 26, 2024
1 parent 2320af1 commit e40a2d8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@ jobs:
- name: Install dependencies
run: npm install --ignore-scripts

- name: Authenticate with Registry
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Ensure registry access
run: npm whoami

- name: Pre-release
run: npm run prepublish

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
npm publish

0 comments on commit e40a2d8

Please # to comment.