Skip to content

Merge pull request #39 from pinoramajs/changeset-release/main #57

Merge pull request #39 from pinoramajs/changeset-release/main

Merge pull request #39 from pinoramajs/changeset-release/main #57

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Creating .npmrc and remove .husky
run: |
cat << EOF > "$HOME/.npmrc"
enable-pre-post-scripts=true
package-manager-strict=false
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
rm -rf .husky
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release PR or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
commit: "chore: release"
title: "chore: release candidate"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}