File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -104,3 +104,33 @@ jobs:
104104 id : extract-version
105105 if : ${{ failure() }}
106106 run : echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}"
107+
108+ release_npm :
109+ name : Publish to npm
110+ needs : release
111+ runs-on : ubuntu-latest
112+ permissions :
113+ contents : read
114+ issues : write
115+ steps :
116+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
117+ with :
118+ node-version : 18.x
119+ - name : Download build artifacts
120+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
121+ with :
122+ name : build-artifact
123+ path : dist
124+ - name : Restore build artifact permissions
125+ run : cd dist && setfacl --restore=permissions-backup.acl
126+ continue-on-error : true
127+ - name : Publish to npm with provenance
128+ env :
129+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
130+ run : |
131+ cd dist/js
132+ npm publish --provenance --access public --tag latest
133+ - name : Extract Version
134+ id : extract-version
135+ if : ${{ failure() }}
136+ run : echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}"
You can’t perform that action at this time.
0 commit comments