Skip to content

v1.0.0-rc.2

v1.0.0-rc.2 #111

Workflow file for this run

name: Publish packages to NPM
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v3.0.2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- uses: little-core-labs/get-git-tag@v3.0.1
id: tagName
with:
tagRegex: "v(.*)"
tagRegexGroup: 1
- run: yarn install
- run: yarn run build
- run: yarn test
- run: yarn run lint
- run: yarn run lerna publish ${{ steps.tagName.outputs.tag }} --yes --no-git-tag-version --no-push --no-verify-access
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}