Skip to content

Commit c160580

Browse files
authored
fix: add npm publish to release-on-merge workflow (#93)
1 parent 1fc9303 commit c160580

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/release-on-merge.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "version=$VERSION" >> $GITHUB_OUTPUT
3333
fi
3434
35-
create-release:
35+
release-and-publish:
3636
needs: check-release
3737
if: needs.check-release.outputs.should_release == 'true'
3838
runs-on: ubuntu-latest
@@ -49,3 +49,22 @@ jobs:
4949
gh release create "v$VERSION" \
5050
--title "v$VERSION" \
5151
--generate-notes
52+
53+
- uses: actions/setup-node@v4
54+
with:
55+
node-version: 20
56+
registry-url: https://registry.npmjs.org/
57+
58+
- name: Install dependencies
59+
run: yarn install
60+
61+
- name: Build
62+
run: yarn dev:build
63+
64+
- name: Prepack
65+
run: npm run prepack
66+
67+
- name: Publish to NPM
68+
run: npm publish
69+
env:
70+
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

0 commit comments

Comments
 (0)