diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 0000000..0e8ff7f --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -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