From 51393c26781e53041e379d05bc38b9a709883dee Mon Sep 17 00:00:00 2001 From: Bruce Harrison Date: Thu, 4 Jul 2024 01:23:03 -0500 Subject: [PATCH 1/3] fix build --- .github/workflows/release.yml | 2 ++ package.json | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 439bc00..8a2e0b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,8 @@ jobs: uses: actions/download-artifact@v3 with: name: bcrypt-edge-package + - name: NPM install + run: npm i - name: Publish to NPM run: npm publish --access public env: diff --git a/package.json b/package.json index 3136f5b..ce06f1f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "name": "Bruce Harrison" }, "scripts": { - "preprepare": "npm install rollup", "prepare": "npm run build", "build": "rollup -c", "test": "vitest", From f93d39b70c4d6eae68ae8faa7f49b87c61e0b657 Mon Sep 17 00:00:00 2001 From: Bruce Harrison Date: Thu, 4 Jul 2024 01:27:40 -0500 Subject: [PATCH 2/3] update actions --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a2e0b1..4914129 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,14 +22,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get Release Version id: getReleaseVersion run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v} - name: Use Node.js 18.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x registry-url: https://registry.npmjs.org/ @@ -47,7 +47,7 @@ jobs: run: npm run build - name: Upload package artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bcrypt-edge-package path: | @@ -61,7 +61,7 @@ jobs: needs: build steps: - name: Use Node.js 18.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x registry-url: https://registry.npmjs.org/ @@ -85,7 +85,7 @@ jobs: needs: publish-package steps: ## Checkout so we can apply the new tag - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: "0" From 60501a276cc3a4d0b3615fc713949cde4b25375c Mon Sep 17 00:00:00 2001 From: Bruce Harrison Date: Thu, 4 Jul 2024 01:29:25 -0500 Subject: [PATCH 3/3] update ci --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cde863..e6a39fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: - - '!main' + - "!main" pull_request: branches: - main @@ -13,12 +13,12 @@ jobs: build-pr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js 18.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x - cache: 'npm' + cache: "npm" - name: Update NPM run: npm install -g npm - name: NPM Install @@ -31,12 +31,12 @@ jobs: contents: read pull-requests: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js 18.x - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x - cache: 'npm' + cache: "npm" - name: Update NPM run: npm install -g npm - name: NPM Install