Skip to content

Release 3.0.10

Release 3.0.10 #545

Workflow file for this run

name: "[PUBLISH] NewsFragments"
on:
push:
tags:
- "*"
permissions:
contents: write
packages: read
jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install
- run: npm run lint
- run: npm test
- id: "publish"
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- if: steps.publish.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.old-version }} => ${{ steps.publish.version }}"
- if: steps.publish.type == 'none'
run: |
echo "Version not changed."
- name: Get current tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Generate release changelog
run: ./src/cli/index.js preview -p $RELEASE_VERSION >> release.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: release.txt