Skip to content

Commit

Permalink
ci: add github action for publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaojiaoCpbr committed Feb 21, 2024
1 parent 0c6c05a commit 6996212
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 194 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/gerald-pr.yml

This file was deleted.

80 changes: 0 additions & 80 deletions .github/workflows/node-ci-main.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 🔧 Publish to npm

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.10.0"
cache: "yarn"
registry-url: https://registry.npmjs.org
scope: "@junyiacademy"
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build perseus-core
run: npm run build:publish
working-directory: ./packages
- name: Publish to npm
run: npm publish
working-directory: ./packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
101 changes: 0 additions & 101 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 6996212

Please sign in to comment.