Skip to content

chore(release): 3.0.0-alpha.0 🎉 #92

chore(release): 3.0.0-alpha.0 🎉

chore(release): 3.0.0-alpha.0 🎉 #92

Workflow file for this run

name: Generate new release
on:
push:
tags:
- 'v3*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.3-22
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 3.x
- 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 --tag alpha
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/slack-notify-release-action@v0.2.0
# with:
# slack_token: ${{ secrets.SLACK_TOKEN }}
# channel_id: ${{ secrets.SLACK_CHANNEL }}
# project_name: Bootstrap Italia