diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22a332a..c80a11a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,23 +5,12 @@ on: 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 + uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@6ca15a6232c8cd448affa8b61e110e5ef7528d1e secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} GH_RELEASE_TOKEN: ${{ needs.collect-token.outputs.gh_release_token }} NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}