1818
1919 - name : Checkout
2020 uses : actions/checkout@v3
21-
21+
2222 - name : Configure git user
2323 uses : ./.github/actions/github-config
2424 with :
@@ -30,11 +30,11 @@ jobs:
3030 id : release
3131 with :
3232 node-version : 20
33- release-pr-title : ' chore(release): :package: version update for packages'
34- release-commit-message : ' chore(release): version update for packages'
33+ release-pr-title : " chore(release): :package: version update for packages"
34+ release-commit-message : " chore(release): version update for packages"
3535 github-token : ${{ secrets.GITHUB_TOKEN }}
36- release-command : ' changes:release'
37-
36+ release-command : " changes:release"
37+
3838 - name : Generate outputs
3939 id : releaseOutputs
4040 if : steps.release.outputs.release-ready == 'true'
@@ -57,13 +57,16 @@ jobs:
5757 uses : ./.github/actions/prepare-packages
5858 with :
5959 node-version : 20
60- build-command : ' lib'
60+ build-command : " lib"
6161
6262 publish-npm :
6363 name : Publish to NPM Registry
6464 needs : prepare
6565 runs-on : ubuntu-latest
6666 continue-on-error : false
67+ permissions :
68+ id-token : write
69+ contents : read
6770 steps :
6871 - name : Cancel previous jobs
6972 uses : styfle/cancel-workflow-action@0.11.0
7578 uses : ./.github/actions/publish
7679 with :
7780 node-version : 20
78- registry-url : ' https://registry.npmjs.org/'
79- artifact-name : ' package-artifact'
80- scope : ' @macpaw'
81+ registry-url : " https://registry.npmjs.org/"
82+ artifact-name : " package-artifact"
83+ scope : " @macpaw"
8184 auth-token : ${{ secrets.NPM_TOKEN }}
8285
8386 publish-github :
8891 steps :
8992 - name : Cancel previous jobs
9093 uses : styfle/cancel-workflow-action@0.11.0
91-
94+
9295 - name : Checkout
9396 uses : actions/checkout@v3
9497
97100 with :
98101 node-version : 20
99102 registry-url : https://npm.pkg.github.com/
100- artifact-name : ' package-artifact'
101- scope : ' @macpaw'
103+ artifact-name : " package-artifact"
104+ scope : " @macpaw"
102105 auth-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments