From 6536deed714089bb923d2e5b75de825dc2371655 Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 19:50:59 -0600 Subject: [PATCH 1/7] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0418bed..26821d5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -34,4 +34,4 @@ jobs: - run: npm run build - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 022c4458b396c5e684250a01551763f1dcc7696c Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 19:59:42 -0600 Subject: [PATCH 2/7] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 26821d5..e010c7e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build From 27d73684f0f7a857d1abd097f64f01fb65da76c7 Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 20:00:55 -0600 Subject: [PATCH 3/7] Update npm-publish.yml I have no clue what I'm doing... --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e010c7e..26821d5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build From fd36f71b6dd615412f2f3de30ecc07113722ee20 Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 20:02:24 -0600 Subject: [PATCH 4/7] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 26821d5..0b19d2b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -30,6 +30,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ + - run: echo "Check NPM_TOKEN length" && [ -z "${NODE_AUTH_TOKEN}" ] && echo "NPM_TOKEN is empty" || echo "NPM_TOKEN is set" - run: npm ci - run: npm run build - run: npm publish From 3f1c3ff88c7bcd5459ffc2852a615019d13048a2 Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 20:08:37 -0600 Subject: [PATCH 5/7] Update npm-publish.yml Feeling good about this one... --- .github/workflows/npm-publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0b19d2b..9d578fe 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,14 +25,13 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: echo "Check NPM_TOKEN length" && [ -z "${NODE_AUTH_TOKEN}" ] && echo "NPM_TOKEN is empty" || echo "NPM_TOKEN is set" - run: npm ci - - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 672ba96d5a5a5109553eb76808e2a0afb727ea75 Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 23:15:02 -0600 Subject: [PATCH 6/7] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9d578fe..03faf23 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,12 +11,12 @@ jobs: build-and-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - run: npm ci - run: npm run build - name: Upload Artifact - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | dist/index.js @@ -30,7 +30,6 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: echo "Check NPM_TOKEN length" && [ -z "${NODE_AUTH_TOKEN}" ] && echo "NPM_TOKEN is empty" || echo "NPM_TOKEN is set" - run: npm ci - run: npm publish env: From a32060087887322e189c284f5768cb65748b9c1f Mon Sep 17 00:00:00 2001 From: Dalton Sutton Date: Thu, 5 Dec 2024 23:20:06 -0600 Subject: [PATCH 7/7] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 03faf23..6559444 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - registry-url: https://registry.npmjs.org/ + registry-url: "https://registry.npmjs.org" - run: npm ci - run: npm publish env: