1.6.6-beta-1-pw-metadata #105
Workflow file for this run
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: Publish REPORTER | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.release.target_commitish }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- run: npm i | |
- run: git config --global user.name "GitHub CD bot" | |
- run: git config --global user.email "[email protected]" | |
- run: npm version ${{ github.event.release.tag_name }} | |
- uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
# use "beta" tag if relevant, otherwise use "latest" | |
tag: ${{ contains(github.event.release.tag_name, 'beta') && 'beta' || 'latest' }} | |
- name: update Chagelog.md with autogenerated release notes | |
run: | | |
echo "\n\n\n## Release ${{ github.event.release.tag_name }}\n\n" >> Changelog.md | |
echo "${{ github.event.release.body }}" >> Changelog.md | |
if: contains(github.event.release.tag_name, 'beta') == false | |
- name: commit version to package.json (only for not beta release) | |
run: git push | |
if: contains(github.event.release.tag_name, 'beta') == false | |
env: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |