From 62ad708bf1ee6ba3e2ec4bc026d2b15c797eb986 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Thu, 24 Oct 2024 11:30:53 +0200 Subject: [PATCH] fix(rari-npm): publish action --- .github/workflows/publish-npm-test-run.yml | 20 ++++++++++++++++++++ .github/workflows/publish-npm.yml | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-npm-test-run.yml diff --git a/.github/workflows/publish-npm-test-run.yml b/.github/workflows/publish-npm-test-run.yml new file mode 100644 index 00000000..0697fd05 --- /dev/null +++ b/.github/workflows/publish-npm-test-run.yml @@ -0,0 +1,20 @@ +name: publish-npm-test-run + +on: workflow_dispatch + +jobs: + test-run: + runs-on: ubuntu-latest + steps: + - name: Setup + uses: actions/checkout@v4 + + - name: Checkout + uses: actions/setup-node@v4 + with: + registry-url: "https://registry.npmjs.org/" + node-version-file: "./rari-npm/package.json" + + - name: Publish + working-directory: ./rari-npm + run: npm publish --access public --dry-run diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index cd16cfc8..f3cb60ab 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -14,11 +14,10 @@ jobs: uses: actions/checkout@v4 - name: Checkout - working-directory: ./rari-npm uses: actions/setup-node@v4 with: registry-url: "https://registry.npmjs.org/" - node-version-file: "package.json" + node-version-file: "./rari-npm/package.json" - name: Publish working-directory: ./rari-npm