diff --git a/.github/workflows/npm-ci.yml b/.github/workflows/npm-ci.yml index 609b792..963fb4c 100644 --- a/.github/workflows/npm-ci.yml +++ b/.github/workflows/npm-ci.yml @@ -16,12 +16,12 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0afa9c0..460bf1b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,10 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 20 registry-url: 'https://registry.npmjs.org' - run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - run: echo ${VERSION} @@ -24,5 +24,5 @@ jobs: - run: echo ${NPM_TAG} - run: npm version ${VERSION} --no-git-tag-version --save --verbose - run: npm publish --tag ${NPM_TAG} - env: + env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}