From 1ebc7f9d8aabd3b18399f8c4bf6301ed7016ad78 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 15 Feb 2023 15:47:35 -0500 Subject: [PATCH] Create manual_npm_publish.yml --- .github/workflows/manual_npm_publish.yml | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/manual_npm_publish.yml diff --git a/.github/workflows/manual_npm_publish.yml b/.github/workflows/manual_npm_publish.yml new file mode 100644 index 0000000..6f90f02 --- /dev/null +++ b/.github/workflows/manual_npm_publish.yml @@ -0,0 +1,40 @@ +name: Manual npm publish + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + +jobs: + npm_publish: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 16.x ] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + registry-url: 'https://npm.pkg.github.com' + - run: yarn + env: + NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }} + - name: Run yarn build + env: + NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }} + run: | + yarn build + - name: Configure git.vdb.to npm registry + run: | + npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ + - name: Authenticate to git.vdb.to registry + run: | + npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}" + - name: lerna publish + run: | + lerna publish from-package --no-git-tag-version --yes