From d4a2ac14a7cc6ce6176ced1a2d0a9f2df5938970 Mon Sep 17 00:00:00 2001 From: Scion Date: Thu, 1 Jan 2026 16:12:47 -0800 Subject: [PATCH] Removed cache from npm for now.. --- .github/workflows/builds/npm-package.yaml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/builds/npm-package.yaml diff --git a/.github/workflows/builds/npm-package.yaml b/.github/workflows/builds/npm-package.yaml new file mode 100644 index 0000000..b184651 --- /dev/null +++ b/.github/workflows/builds/npm-package.yaml @@ -0,0 +1,43 @@ +name: Build NPM Package + +on: + push: + branches: + - master + - release/** + pull_request: + branches: + - master + - release/** + workflow_dispatch: + +jobs: + package: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: https://github.com/actions/checkout@v3 + - name: "Build and test the project." + uses: act/common/npm/npm-test@master + with: + workingDirectory: . + uploadArtifacts: "false" + - name: "Pack the next version of the NPM package." + id: get_version + uses: act/common/npm/npm-pack-and-compare@master + with: + name: your-package-name + workingDirectory: . + authToken: ${{ secrets.ACTIONS_TOKEN }} + skipCompare: "true" + - name: "Upload Artifacts." + uses: https://github.com/actions/upload-artifact@v3 + with: + name: ${{ steps.get_version.outputs.tgzName }} + path: ${{ steps.get_version.outputs.tgz }} + - name: "Upload the NPM package." + if: ${{ steps.get_version.outputs.hasChanged }} + uses: act/common/npm/npm-push@master + with: + tgz: ${{ steps.get_version.outputs.tgz }} + apiKey: ${{ secrets.ACTIONS_TOKEN }}