Skip to content

Merge pull request #7 from inaiat/feat/log_method #14

Merge pull request #7 from inaiat/feat/log_method

Merge pull request #7 from inaiat/feat/log_method #14

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install corepack
run: npm install -g corepack && corepack enable
- name: Install dependencies
run: pnpm install
- name: Build and test
run: pnpm build && pnpm test
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish package on JSR
# run: pnpm dlx jsr publish