We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fc9303 commit c160580Copy full SHA for c160580
1 file changed
.github/workflows/release-on-merge.yml
@@ -32,7 +32,7 @@ jobs:
32
echo "version=$VERSION" >> $GITHUB_OUTPUT
33
fi
34
35
- create-release:
+ release-and-publish:
36
needs: check-release
37
if: needs.check-release.outputs.should_release == 'true'
38
runs-on: ubuntu-latest
@@ -49,3 +49,22 @@ jobs:
49
gh release create "v$VERSION" \
50
--title "v$VERSION" \
51
--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