Merge pull request #30 from 2fd/feature/upgrade-swc-core-0-95 #13
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
id-token: write # to be able to generate provenance | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
target: wasm32-wasi | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/ | |
target | |
Cargo.lock | |
key: cargo-dev--ubuntu-latest-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
cargo-dev--ubuntu-latest | |
# Ensure that all components are compilable. | |
- run: cargo test --color always --all | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
registry-url: https://registry.npmjs.org/ | |
- run: npm ci | |
- run: npm run prepack | |
- run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |