Skip to content

fix(ci): remove persist-credentials #13

fix(ci): remove persist-credentials

fix(ci): remove persist-credentials #13

name: NPM Publish Package
on:
push:
branches: [ master, beta, alpha ]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
quality:
name: Quality Control
uses: cnpja/workflows/.github/workflows/nodejs_quality_control.yaml@master
secrets: inherit
publish:
name: NPM Publish
runs-on: ubuntu-latest
needs: quality
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install Dependencies
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
- name: Build Distributable
run: pnpm build
- name: Publish Package
env:
HUSKY: 0
run: pnpm release