From bb5133eff7e03bd2a5d48c68b685d719e770544b Mon Sep 17 00:00:00 2001 From: mikebender Date: Tue, 27 Jul 2021 12:27:11 -0400 Subject: [PATCH 1/2] Add GitHub Publish action that executes manually with workflow_dispatch --- .github/workflows/publish-alpha.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish-alpha.yml diff --git a/.github/workflows/publish-alpha.yml b/.github/workflows/publish-alpha.yml new file mode 100644 index 0000000000..33f7716a18 --- /dev/null +++ b/.github/workflows/publish-alpha.yml @@ -0,0 +1,20 @@ +name: Node.js Package Alpha +on: workflow_dispatch +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://npm.pkg.github.com' + - run: npm install + - run: npm run build + - run: ./node_modules/.bin/lerna publish --canary + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 754966dac2c71784794338943a84f58b3a38e4da Mon Sep 17 00:00:00 2001 From: Mike Bender Date: Tue, 27 Jul 2021 15:20:56 -0400 Subject: [PATCH 2/2] Change registry to GitHub --- .github/workflows/publish-alpha.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-alpha.yml b/.github/workflows/publish-alpha.yml index 33f7716a18..19d95f8825 100644 --- a/.github/workflows/publish-alpha.yml +++ b/.github/workflows/publish-alpha.yml @@ -15,6 +15,6 @@ jobs: registry-url: 'https://npm.pkg.github.com' - run: npm install - run: npm run build - - run: ./node_modules/.bin/lerna publish --canary + - run: ./node_modules/.bin/lerna publish --canary --registry https://npm.pkg.github.com --yes env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}