chore: revert to old fix #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-please | |
on: | |
push: | |
branches: | |
- main | |
- release_extra | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GoogleCloudPlatform/release-please-action@v2 | |
id: release | |
with: | |
package-name: monkey-rust | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: node | |
changelog-types: > | |
[ | |
{"type":"compiler","section":"compiler","hidden":false}, | |
{"type":"feat","section":"Features","hidden":false}, | |
{"type":"fix","section":"Bug Fixes","hidden":false}, | |
{"type":"dev","section":"Dev","hidden":false}, | |
{"type":"doc","section":"Doc","hidden":false}, | |
{"type":"playground","section":"playground","hidden":false}, | |
{"type":"meta","section":"Miscellaneous","hidden":false} | |
] | |
- run: npx envinfo | |
- uses: actions/checkout@v2 | |
- run: docker run -v $PWD:/pwd -w /pwd gengjiawen/node-build bash -c "cd wasm && wasm-pack build --release --scope=gengjiawen" | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
registry-url: 'https://registry.npmjs.org' | |
if: ${{ steps.release.outputs.release_created }} | |
- run: npm publish --access public | |
working-directory: wasm/pkg | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
if: ${{ steps.release.outputs.release_created }} | |
- run: cargo install cargo-workspaces | |
if: ${{ steps.release.outputs.release_created }} | |
- run: cargo workspaces publish --from-git --token $CARGO_TOKEN | |
env: | |
CARGO_TOKEN: ${{secrets.CARGO_TOKEN}} | |
if: ${{ steps.release.outputs.release_created }} |