From 01cca4a69f68eb11f049a423042526f86d77f76c Mon Sep 17 00:00:00 2001 From: Luke Harris Date: Mon, 12 Aug 2024 17:49:15 -0500 Subject: [PATCH] Update npm publish workflow for Node 20 https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ --- .github/workflows/npm-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 47b198d..94c132f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -3,14 +3,15 @@ name: NPM Publish on: release: types: [created] + workflow-dispatch: jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: '20.x' registry-url: 'https://registry.npmjs.org' - run: npm install -g npm - run: npm publish --access public