Skip to content

Commit

Permalink
chore: add publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 16, 2023
1 parent 5f77d6f commit 1f9d200
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/publish beta npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@ jobs:
git config --local user.name "GitHub Action"
- name: Change to Package Directory
run: cd packages/${{ github.event.inputs.packagePath }}

- name: Install Package Dependencies
run: npm install

- name: Build Package
run: npm run build

- name: Update Package Version
run: npm version ${{ github.event.inputs.betaVersion }}

- name: Publish Package
run: |
cd packages/${{ github.event.inputs.packagePath }}
npm install
npm run build
npm version ${{ github.event.inputs.betaVersion }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
npm publish
env:
Expand Down

0 comments on commit 1f9d200

Please sign in to comment.