Skip to content

Commit

Permalink
chore: add deps install before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Nov 20, 2023
1 parent 22cb8dc commit 425aac0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -392,6 +392,8 @@ jobs:
run: |
npm i --prefer-online --no-fund --no-audit -g npm@latest
npm config set '//registry.npmjs.org/:_authToken'=\${PUBLISH_TOKEN}
- name: Install Dependencies
run: npm i --ignore-scripts --no-audit --no-fund
- name: Publish
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
Expand Down
25 changes: 25 additions & 0 deletions scripts/template-oss/_job-release-integration-yml.hbs
@@ -0,0 +1,25 @@
runs-on: ubuntu-latest
defaults:
run:
shell: bash
permissions:
deployments: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: $\{{ fromJSON(needs.release.outputs.release).tagName }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install npm@latest
run: |
npm i --prefer-online --no-fund --no-audit -g npm@latest
npm config set '//registry.npmjs.org/:_authToken'=\${PUBLISH_TOKEN}
{{> stepDepsYml }}
- name: Publish
env:
PUBLISH_TOKEN: $\{{ secrets.PUBLISH_TOKEN }}
run: npm publish --provenance --tag={{ publishTag }}

0 comments on commit 425aac0

Please sign in to comment.