Merge pull request #110 from fingerprintjs/fix-coverage-workflow #70
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: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
environment: production-npm | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371 | |
with: | |
version: 9 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build packages | |
run: pnpm build | |
- name: Setup git for tests | |
run: git config --global user.email "[email protected]" && git config --global user.name "Test User" | |
- name: Test | |
run: pnpm test | |
- name: Create Release | |
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 | |
with: | |
publish: pnpm changeset publish | |
commit: 'chore(release): changeset created a new release' | |
title: 'Release packages [changeset]' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |