Skip to content

chore(deps): remove ts-node (#28) #29

chore(deps): remove ts-node (#28)

chore(deps): remove ts-node (#28) #29

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
paths:
- 'package.json'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Can Publish
run: npx can-npm-publish --verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Install
run: 'pnpm install --frozen-lockfile'
- name: Build
run: pnpm build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: tag
run: |
git config user.name github-actions
git config user.email [email protected]
git tag $(bash scripts/release.sh)
git push --tags