v7.1.0 #3
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
name: Publish release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
node: | |
- 18 | |
platform: | |
- ubuntu-latest | |
name: "${{matrix.platform}} / Node.js ${{ matrix.node }}" | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: "https://registry.npmjs.org" | |
cache: "pnpm" | |
- run: npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
- name: run publish | |
run: lerna publish from-package --ignore-scripts true --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create Github Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
make_latest: true | |
generate_release_notes: true | |
draft: true |