Skip to content

Bump @types/node from 16.18.59 to 20.8.7 #722

Bump @types/node from 16.18.59 to 20.8.7

Bump @types/node from 16.18.59 to 20.8.7 #722

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
branches-ignore:
- "*"
pull_request:
tags: []
branches: []
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
name: Publish NPM
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Installing Node.js v14.x
with:
node-version: 14.x
- name: Installing dependencies
run: |
npm install
- name: Lint the code
run: |
npm run lint
- name: Compile TypeScript
run: |
npm run build
- name: Execute tests
run: |
npm run test
- name: Compute GitHub tag
id: tag
uses: dawidd6/action-get-tag@v1
- name: Publish
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
npm version ${{ steps.tag.outputs.tag }}
npm publish --access=public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}