.github/workflows/release.yml
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.repository == 'node-influx/node-influx'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Reconfigure Git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run clean && npm run build:dist && npx semantic-release