Skip to content

ci: bump dependencies #18

ci: bump dependencies

ci: bump dependencies #18

Workflow file for this run

name: Node CI
on:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm test
env:
CI: true
publishing:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: git remote set-url origin https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY
- run: git config --global user.email "ekruglov@gmail.com"
- run: git config --global user.name "Github Actions"
- run: npm ci
- run: npm run pre-commit
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > .npmrc
- run: npm run releaseit
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}