Skip to content

chore(release): 2.12.0 🎉 #74

chore(release): 2.12.0 🎉

chore(release): 2.12.0 🎉 #74

Workflow file for this run

name: Generate new release
on:
push:
tags:
- 'v2*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Always release the tip of the default branch
ref: main
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
shell: bash
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: apt-get update && apt-get install zip
- run: bundle install
- run: chmod -R 777 .
- run: mv .npmrc-dist .npmrc
- run: npm ci
- run: npm run build
- name: Publish package to NPM
run: npm publish
continue-on-error: true
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
- run: sh ./scripts/create-release-attachment.sh
- uses: ncipollo/release-action@v1
with:
artifacts: './dist/zip/*.zip'
bodyFile: 'RELEASE_BODY.md'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish on gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
chown -R 1001:121 "/github/home/.npm"
chown -R 1001:121 "/github/home/.bundle/"
chmod -R 777 /github/home/.bundle/
chmod -R 777 /usr/local/bundle/
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: Bootstrap Italia