ci: add optional swc bindings #9
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 Release | |
on: | |
push: | |
branches: | |
- stable | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install Dependencies | |
run: npm install | |
- name: Install special build dependency | |
run: npm install @rollup/rollup-linux-x64-gnu | |
- name: Build | |
run: npm run build | |
if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') }} | |
- name: Release | |
run: npx semantic-release | |
if: ${{ !contains(github.event.head_commit.message, '[skip-ci]') }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |