feat: test release 2 #43
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: 'Release' | |
on: | |
push: | |
branches: | |
# - master | |
- feature/insights-2-remove-projen | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Otherwise the token this creates(?) overrides the workflow generated one, required for semantic-release to work | |
# https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-a-master-branch | |
persist-credentials: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm ci | |
working-directory: application/src/frontend | |
- run: npm run package | |
- uses: actions/cache@v4 | |
with: | |
path: ./ | |
key: ${{ github.sha }} | |
release: | |
needs: build | |
permissions: | |
contents: write # Required to make a commit with the contents of the build output, the /dist folder | |
issues: write # Required to close any issues that was referenced in the PR | |
pull-requests: write # Read PRs and comment on them | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: ./ | |
key: ${{ github.sha }} | |
- run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |