Skip to content

fix: remove NPM authentication step from GitHub Actions workflow #15

fix: remove NPM authentication step from GitHub Actions workflow

fix: remove NPM authentication step from GitHub Actions workflow #15

name: Publish Package to NPM
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Bump version
run: cd ctw-kit && npm version patch --no-git-tag-version
- name: Build
run: cd ctw-kit && bun run build
- name: Publish to NPM
run: cd ctw-kit && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}