Skip to content

Update nodejs (#91) #82

Update nodejs (#91)

Update nodejs (#91) #82

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
jobs:
release:
name: Trigger release
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js 19
uses: actions/setup-node@v3
with:
node-version: 19.x
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm run release