chore(release): 1.0.0-19 🎉 #23
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: Generate new release | |
on: | |
push: | |
tags: | |
- 'v1*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: git config | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- run: mv .npmrc-dist .npmrc | |
- run: npm ci | |
- run: npm run build:lib | |
- name: Publish package to NPM | |
run: cp .npmrc dist/design-angular-kit/.npmrc && cd dist/design-angular-kit && npm publish --tag unstable | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: npm i extract-changelog-release | |
- name: Generate Release Body | |
run: npx extract-changelog-release > RELEASE_BODY.md | |
- uses: ncipollo/release-action@v1 | |
with: | |
bodyFile: 'RELEASE_BODY.md' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish on gh-pages | |
run: | | |
npm run build | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npm run documentation-deploy-to-gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: italia/[email protected] | |
with: | |
slack_token: ${{ secrets.SLACK_TOKEN }} | |
channel_id: ${{ secrets.SLACK_CHANNEL }} | |
project_name: Design Angular Kit |