Skip to content

add encoder and decoder for regular numbers #17

add encoder and decoder for regular numbers

add encoder and decoder for regular numbers #17

Workflow file for this run

name: Publish
on: { push: { branches: [ main ] }, release: { types: [ created ] } }
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions: { contents: read, id-token: write }
steps:
- { name: Checkout, uses: actions/checkout@v4 }
- { name: Setup pnpm, uses: pnpm/action-setup@v4, with: { version: ^10, run_install: true } }
- name: Setup Node.js environment
uses: actions/setup-node@v4
with: { node-version: ^18.20 || ^20.10 || >=22, registry-url: 'https://registry.npmjs.org', cache: pnpm }
- run: git config --global user.email github-action@users.noreply.github.com
- run: git config --global user.name "Github Action"
- run: pnpm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
- run: echo $PWD/node_modules/.bin:$PATH > $GITHUB_PATH
- if: github.event_name == 'push'
run: scripts/version-dev.js
- run: scripts/package.sh
- name: Publish dev
if: github.event_name == 'push'
run: pnpm publish --provenance --access public --no-git-checks --tag dev
working-directory: dist
- name: Publish release
if: github.event_name == 'release'
run: pnpm publish --provenance --access public --no-git-checks
working-directory: dist