Skip to content

Commit

Permalink
Actions: Add 'Manual release' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nahkd123 committed Dec 5, 2022
1 parent 3689b67 commit 8f971e7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
run-name: '${{ github.actor }}: Manual Release'
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install TypeScript compiler and other packages
run: |
npm install -g typescript
npm install
- name: Compile TypeScript files
run: tsc -b
- name: Configure npm and publish package
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}
npm publish --access public

0 comments on commit 8f971e7

Please sign in to comment.