Skip to content

v1.2.10

v1.2.10 #23

Workflow file for this run

name: Node.js
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
- name: Get the version
id: get_version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: npm version ${{ steps.get_version.outputs.version }}
- name: Validate and extract release information
id: release
uses: manovotny/[email protected]
- name: Set node version
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: yarn build
- name: Release config
run: |
yarn config set -H "npmRegistries['$(yarn config get npmRegistryServer)'].npmAlwaysAuth" true
yarn config set -H "npmRegistries['$(yarn config get npmRegistryServer)'].npmAuthToken" ${{ secrets.NPM_API_TOKEN }}
- name: Publish version
run: yarn npm publish --access public