π github-deploy θζ¬ζ΄ζ° #15
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: Build and Publish | |
on: | |
pull_request: | |
branches: [2.x] | |
push: | |
branches: [2.x] | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Node Version Change β | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Use Pnpm β | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 6 | |
run_install: false | |
- name: Install and Build π§ | |
run: | | |
pnpm i | |
pnpm run build | |
- name: Publish π | |
run: pnpm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |