File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1- name : build
1+ name : publish
22
33on :
44 workflow_call :
55 secrets :
6+ NPM_TOKEN :
7+ description : ' A token for publishing to the NPM registry'
8+ required : true
69 BOT_APP_ID :
710 description : ' The GitHub App ID for authenticating with the GitHub API'
811 required : true
912 BOT_PRIVATE_KEY :
1013 description : ' The GitHub App Private Key for authenticating with the GitHub API'
1114 required : true
12- outputs :
13- artifact :
14- description : " Artifact URL of the build"
15- value : ${{ jobs.build.outputs.artifact }}
1615
1716jobs :
18- build :
17+ publish :
1918 if : github.repository_owner == 'bombshell-dev'
2019 runs-on : ubuntu-latest
21- outputs :
22- artifact : ${{ steps.upload.outputs.artifact-url }}
2320
2421 steps :
2522 - name : Generate a token
5047 - name : Build
5148 run : pnpm run build
5249
53- - uses : actions/upload-artifact@v4
54- id : upload
50+ - name : Create Release Pull Request or Publish to npm
51+ id : changesets
52+ uses : changesets/action@v1
5553 with :
56- name : build
57- path : dist
54+ publish : pnpm exec changeset publish
55+ env :
56+ GITHUB_TOKEN : ${{ steps.bot-token.outputs.token }}
57+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments