diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d9d6b91..787387b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -10,7 +10,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: - node-version: '18.14.0' + node-version: '20.12.2' registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm publish diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index 454fd38..e109c63 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -15,7 +15,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: - node-version: '18.14.0' + node-version: '20.12.2' registry-url: 'https://registry.npmjs.org' - name: Bump version, build, commit, and merge changes if: github.event.pull_request.merged == true diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8fb89d4..029d7d2 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [ 18.14.0 ] + node-version: [ 20.12.2 ] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/.nvmrc b/.nvmrc index 7ea6a59..a81deba 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.11.0 +v20.12.2 diff --git a/workflows/npm-publish.yml b/workflows/npm-publish.yml deleted file mode 100644 index 2c8a680..0000000 --- a/workflows/npm-publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Package to npmjs -on: - release: - types: [published] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 - with: - node-version: '18.x' - registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm run tests - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/workflows/run-tests.yml b/workflows/run-tests.yml deleted file mode 100644 index 75eb045..0000000 --- a/workflows/run-tests.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Run Tests - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run tests