Update FUNDING.yml #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |