prerelease 1.10.0-node22 #17
Workflow file for this run
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
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Desired Npm version' | |
required: true | |
type: string | |
default: '' | |
name: prerelease | |
run-name: prerelease ${{ github.event.inputs.tag }} | |
jobs: | |
prerelease: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Prepare build | |
run: | | |
corepack enable | |
yarn install | |
yarn build | |
env: | |
CI: true | |
- name: Publish to NPM | |
run: | | |
git fetch origin main | |
yarn version ${{ github.event.inputs.tag }} | |
npm publish --access=public --tag nightly | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |