Skip to content

Release

Release #2

Workflow file for this run

name: Release
on:
# TODO After publishing repository change this to trigger on push to main and test
workflow_dispatch:
jobs:
collect-token:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
outputs:
gh_release_token: ${{ steps.app-token.outputs.token }}
build-and-release:
# Don't forget to configure production environment after repository is made public to require approval before triggering!
name: 'Build project, run CI checks and publish new release'
needs:
- collect-token
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1
secrets:
GH_RELEASE_TOKEN: ${{ needs.collect-token.outputs.gh_release_token }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}