release: 1.2.3 #12
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 | |
# Avoid triggering two build on PR | |
# https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/2 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- uses: pnpm/[email protected] | |
with: | |
version: 6.0.2 | |
- name: Install and Build 🔧 | |
run: | | |
pnpm i | |
pnpm build | |
pnpm test | |
env: | |
username: ${{ secrets.username }} | |
password: ${{ secrets.password }} |