Skip to content

Commit 3245aba

Browse files
chore(release): trusted publishing after initial release (openng-org#16)
* chore(release): enable trusted publishing * chore(release): move PR update to separate job so it can be retried if it happens to fail.
1 parent 5997a05 commit 3245aba

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
permissions:
1919
contents: read
2020
id-token: write # for OIDC
21-
pull-requests: write # for labelling PRs
2221
steps:
2322
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2423
with:
@@ -35,13 +34,18 @@ jobs:
3534
- run: npm ci
3635
- run: npm run build
3736

38-
- name: Publish with Provenance
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # temporary only for first publish
37+
- name: Trusted Publish with Provenance
4138
run: |
42-
npm publish --access public --provenance
39+
npm publish
4340
working-directory: dist/ngx-toastr
4441

42+
update-release-pr:
43+
name: Update Release PR
44+
needs: publish
45+
runs-on: ubuntu-slim
46+
permissions:
47+
pull-requests: write # for labeling/commenting PRs
48+
steps:
4549
- name: Update Release PR Label
4650
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4751
with:

0 commit comments

Comments
 (0)