fix: Links to GH repo in templates (#38) #40
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
on: | |
push: | |
branches: | |
- main | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: navikt/github-app-token-generator@v1 | |
id: get-token | |
with: | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
app-id: ${{ secrets.APP_ID }} | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
token: ${{ steps.get-token.outputs.token }} | |
- uses: actions/checkout@v3 | |
if: ${{ steps.release.outputs.releases_created }} | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- uses: actions/setup-node@v3 | |
with: | |
cache: "pnpm" | |
check-latest: true | |
registry-url: "https://registry.npmjs.org" | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Install dependencies | |
run: pnpm install | |
if: ${{ steps.release.outputs.releases_created }} | |
- run: pnpm --filter "@impalajs/*" publish | |
if: ${{ steps.release.outputs.releases_created }} | |
- name: Authenticate pnpm | |
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}" | |
if: ${{ steps.release.outputs.releases_created }} | |
env: | |
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- run: pnpm --filter "@impalajs/*" publish | |
if: ${{ steps.release.outputs.releases_created }} |