Release v1.2.11 (#29) #8
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 "main" branch repo push | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- '.github/**' | |
- '**/.gitignore' | |
- '**/.eslintrc.json' | |
- '**/.prettierrc.json' | |
- '**/*.md' | |
- '**/LICENSE' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: CI/CD | |
strategy: | |
matrix: | |
node-version: ['lts/*'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Use latest pnpm | |
uses: pnpm/action-setup@master | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: | | |
pnpm install --frozen-lockfile | |
- name: Run e2e tests on staging | |
run: | | |
pnpm run test:e2e | |
release: | |
needs: test | |
runs-on: ubuntu-latest | |
environment: CI/CD | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Get latest version from package.json | |
id: package_version | |
run: echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT | |
- name: Create tag release | |
uses: ncipollo/release-action@main | |
with: | |
tag: v${{ steps.package_version.outputs.VERSION }} | |
name: v${{ steps.package_version.outputs.VERSION }} | |
body: Release v${{ steps.package_version.outputs.VERSION }} |