Skip to content

Commit bfe4e35

Browse files
fix: add changesets release step with NPM_SECRET
1 parent d584b99 commit bfe4e35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,12 @@ jobs:
3838

3939
- name: Run tests
4040
run: pnpm test
41+
42+
- name: Create Release Pull Request or Publish
43+
if: github.ref == 'refs/heads/main'
44+
uses: changesets/action@v1
45+
with:
46+
publish: pnpm run release
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_SECRET }}

0 commit comments

Comments
 (0)