0.0.8 #7
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 to npm | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build package | |
run: pnpm build | |
- name: Set NPM profile for publishing packages | |
uses: franzbischoff/replace_envs@v1 | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
with: | |
from_file: '.npmrc.template' | |
to_file: '.npmrc' | |
commit: 'false' | |
- name: Publish package | |
run: pnpm publish --access=public --no-git-checks |