File tree Expand file tree Collapse file tree 3 files changed +5
-28
lines changed
Expand file tree Collapse file tree 3 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 44 "commit" : false ,
55 "fixed" : [],
66 "linked" : [],
7- "access" : " restricted " ,
7+ "access" : " public " ,
88 "baseBranch" : " main" ,
99 "updateInternalDependencies" : " patch" ,
1010 "ignore" : []
Original file line number Diff line number Diff line change 1616 contents : write
1717 id-token : write
1818 pull-requests : write
19- outputs :
20- published : ${{ steps.changesets.outputs.published }}
2119 steps :
2220 - name : Checkout Repo
2321 uses : actions/checkout@v4
@@ -40,34 +38,12 @@ jobs:
4038 uses : changesets/action@v1
4139 with :
4240 version : bun run version
43- publish : bun pm pack && bunx npm@latest publish ./*.tgz --access public
41+ publish : bun run release
4442 env :
4543 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4644
47- publish-github-packages :
48- name : Publish to GitHub Packages
49- needs : release
50- if : needs.release.outputs.published == 'true'
51- runs-on : ubuntu-latest
52- permissions :
53- contents : read
54- packages : write
55- steps :
56- - name : Checkout Repo
57- uses : actions/checkout@v4
58-
59- - name : Setup Bun
60- uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
61- with :
62- bun-version : latest
63-
64- - name : Install Dependencies
65- run : bun install --frozen-lockfile
66-
67- - name : Build
68- run : bun run build
69-
7045 - name : Publish to GitHub Packages
46+ if : steps.changesets.outputs.published == 'true'
7147 run : |
7248 echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
7349 bun pm pack && bunx npm@latest publish ./*.tgz --access public --registry https://npm.pkg.github.com
Original file line number Diff line number Diff line change 8686 "test" : " bun test" ,
8787 "build" : " tsup" ,
8888 "changeset" : " changeset" ,
89- "version" : " changeset version && bun install"
89+ "version" : " changeset version && bun install" ,
90+ "release" : " bun run build && bunx npm@latest exec changeset -- publish"
9091 }
9192}
You can’t perform that action at this time.
0 commit comments