Skip to content

Commit

Permalink
ci: use obltmachine for tagging and creating the release in the relea…
Browse files Browse the repository at this point in the history
…se workflow (#948)

* Use obltmachine for tagging in the release workflow

* Add missing places where we need to use the PAT
  • Loading branch information
reakaleek authored Aug 27, 2024
1 parent c51c0b7 commit 2b28c62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
default: false

permissions:
contents: write # needed to push the tag and create the release
id-token: write # to enable use of OIDC for npm provenance

jobs:
Expand All @@ -27,7 +26,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}

- uses: elastic/oblt-actions/git/setup@v1
with:
github-token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- run: npm ci # runs npm prepublish

- name: configure NPMJS token
Expand All @@ -36,7 +39,7 @@ jobs:
- run: npx semantic-release --dry-run="${DRY_RUN}"
env:
DRY_RUN: ${{ github.event.inputs.dry-run }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

- name: Get version and package name
run: |
Expand Down

0 comments on commit 2b28c62

Please sign in to comment.