Skip to content

Release & Publish to NPM #5

Release & Publish to NPM

Release & Publish to NPM #5

Workflow file for this run

name: Release & Publish to NPM
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: oven-sh/[email protected]
- run: |
bun install --frozen-lockfile
bun run build
- name: Initialize Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "Release Workflow"
- name: Initialize the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run release
run: npm run release --ci
env:
PIKPAK_USERNAME: ${{ secrets.PIKPAK_USERNAME }}
PIKPAK_PASSWORD: ${{ secrets.PIKPAK_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}