@@ -56,40 +56,10 @@ jobs:
5656 path : dist
5757 overwrite : true
5858
59- release_npm :
60- name : Publish to npm
61- needs : release
62- runs-on : ubuntu-latest
63- permissions :
64- contents : read
65- issues : write
66- id-token : write
67- steps :
68- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
69- with :
70- node-version : 18.x
71- - name : Download build artifacts
72- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
73- with :
74- name : build-artifact
75- path : dist
76- - name : Restore build artifact permissions
77- run : cd dist && setfacl --restore=permissions-backup.acl
78- continue-on-error : true
79- - name : Publish to npm with provenance
80- env :
81- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
82- NPM_CONFIG_PROVENANCE : true
83- run : npx -p publib@latest publib-npm
84- - name : Extract Version
85- id : extract-version
86- if : ${{ failure() }}
87- run : echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}"
88-
8959
9060 release_github :
9161 name : Publish to GitHub Releases
92- needs : [release, release_npm ]
62+ needs : [release]
9363 runs-on : ubuntu-latest
9464 permissions :
9565 contents : write
@@ -106,16 +76,13 @@ jobs:
10676 - name : Restore build artifact permissions
10777 run : cd dist && setfacl --restore=permissions-backup.acl
10878 continue-on-error : true
109- - name : Release
110- env :
111- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112- GITHUB_REPOSITORY : ${{ github.repository }}
113- GITHUB_REF : ${{ github.ref }}
114- run : errout=$(mktemp); gh release create "$(cat dist/releasetag.txt)" -R "${GITHUB_REPOSITORY}" -F dist/changelog.md -t "$(cat dist/releasetag.txt)" --target "${GITHUB_REF}" 2> "$errout" && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" "$errout"; then cat "$errout"; exit $exitcode; fi
11579 - name : Extract Version
11680 id : extract-version
11781 if : ${{ failure() }}
11882 run : echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}"
83+ - uses : mxschmitt/action-tmate@v3
84+ with :
85+ limit-access-to-actor : true
11986 - name : Generate PURL and SBOM
12087 run : |
12188 ./scripts/compliance/gen-purls.sh
0 commit comments