Skip to content

Create FUNDING.yml

Create FUNDING.yml #22

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
publish:
if: contains(github.event.head_commit.message, '[skip ci]') == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm install
- name: Generate changelog
run: npm run release
- name: Build project
run: npm run build
- name: publish to npm
run: |
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: commit and tag release
run: |
git config --global user.email "[email protected]"
git config --global user.name "gitHubCi"
git add .
git commit -m "Commit changes for release"
git push origin master
git tag v$(node -p "require('./package.json').version")
git push --tags