Skip to content

Merge pull request #17 from Namchee/fix/package-exports-definition #41

Merge pull request #17 from Namchee/fix/package-exports-definition

Merge pull request #17 from Namchee/fix/package-exports-definition #41

Workflow file for this run

name: Publish to NPM for each push to master and pull request (canary)
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout to repository
uses: actions/checkout@v4
- run: git fetch --unshallow --tags
- uses: pnpm/[email protected]
with:
version: 8.9.0
- name: Install dependencies
run: pnpm install
- name: Lint and test the files
run: pnpm run lint:fix & pnpm run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm build
pnpx auto shipit