Skip to content

Commit d51d606

Browse files
committed
build -> publish
1 parent 5a25673 commit d51d606

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
name: build
1+
name: publish
22

33
on:
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

1716
jobs:
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
@@ -50,8 +47,11 @@ jobs:
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 }}

0 commit comments

Comments
 (0)