Skip to content

support range literal #184

support range literal

support range literal #184

Workflow file for this run

on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ hashFiles('./Cargo.lock') }}
# https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/db
- run: make build
- uses: actions/upload-artifact@v4
with:
name: pkg
path: ./pkg
publish:
if: ${{ github.ref_type == 'tag' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: pkg
path: ./pkg
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- uses: kitta65/tag-version-match@main
with:
file: ./Cargo.toml
query: .package.version
pattern: '^([0-9]+\.[0-9]+\.[0-9]+)$'
- run: make publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}