mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-14 19:53:12 +00:00
Upgrade workflow to use trusted publishing
https://docs.npmjs.com/trusted-publishers
This commit is contained in:
parent
8ca53dc93b
commit
d9f78cb1bd
24
.github/workflows/pre-release.yml
vendored
24
.github/workflows/pre-release.yml
vendored
@ -4,25 +4,31 @@ on:
|
||||
env:
|
||||
NODE_JS: "22"
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for npmjs' OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
pre-release:
|
||||
name: pre-release
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: waku-org/js-waku
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NODE_JS }}
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
|
||||
# Ensure npm 11.5.1 or later is installed
|
||||
- name: Update npm
|
||||
run: npm install -g npm@latest
|
||||
|
||||
- run: npm install
|
||||
|
||||
|
||||
- run: npm run build
|
||||
|
||||
|
||||
- run: npm run publish -- --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user