Skip to content

Commit

Permalink
ci(release): update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Feb 6, 2024
1 parent 0a4e26d commit 4e4b42d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

# Note that these steps are *identical* to build-and-test (with the caveat
# that build-and-test uses several versions of Node, and Release only uses
Expand All @@ -15,12 +18,13 @@ jobs:
# that yet.
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: 16.x
cache: npm
cache-dependency-path: package-lock.json

- name: install
run: |
Expand Down Expand Up @@ -51,6 +55,6 @@ jobs:
- name: publish
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
npm publish
npm publish --access public --provenance
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4e4b42d

Please sign in to comment.