Release 7.0.0 #7
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: Deploy | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- release | |
jobs: | |
build: | |
if: github.event.pull_request.merged | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# The branch, tag or SHA to checkout. When checking out the repository that | |
# triggered a workflow, this defaults to the reference or SHA for that event. | |
# Otherwise, defaults to `master`. | |
ref: "dev" | |
- name: npm install | |
run: | | |
cd $GITHUB_WORKSPACE | |
npm i | |
- name: build package | |
run: | | |
cd $GITHUB_WORKSPACE | |
npm run build | |
- name: publish to npm | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: ./package.json |