Skip to content

PI-1285 Added initial new-tech page (#17) #20

PI-1285 Added initial new-tech page (#17)

PI-1285 Added initial new-tech page (#17) #20

Workflow file for this run

name: Release component
on:
push:
branches:
- main
paths:
- 'packages/probation-search-frontend/**'
- '.github/workflows/release.yml'
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to publish GitHub release
defaults:
run:
working-directory: packages/probation-search-frontend
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
cache: npm
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
- name: Bump version
run: |
jq ".version = \"$(git describe --tags --abbrev=0 | sed 's/^v//')\"" package.json > tmp && mv tmp package.json
npm version "$type" --no-git-tag-version
env:
type: ${{ contains(github.event.head_commit.message, '!major') && 'major' || 'minor' }}
- name: Install dependencies
run: npm clean-install
- name: Build
run: npm run build
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag release
run: gh release create "v$(jq -r '.version' package.json)" --generate-notes
env:
GH_TOKEN: ${{ github.token }}