Skip to content

Commit

Permalink
fix: add provenance, publish as latest?
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredReisinger committed Jul 17, 2023
1 parent 1fe09bc commit e5d59e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

steps:
# sadly, we have to re-do the build... but we can skip lint/test
- uses: actions/checkout@v3
Expand All @@ -63,6 +69,7 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm audit signatures
- run: npm run build
- run: npm run release
env:
Expand Down
4 changes: 3 additions & 1 deletion .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ branches:
- name: main
- name: alpha
prerelease: true
channel: latest
# - name: beta
# prerelease: true

# also run `npm dist-tag add wordpressed@0.1.0-alpha.XXX latest` to update latest.
# (could be an exec step!)

plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"client"
],
"publishConfig": {
"tag": "alpha"
"tag": "latest"
},
"type": "module",
"main": "index.js",
Expand Down

0 comments on commit e5d59e6

Please sign in to comment.