Merge pull request #4 from lepadatu-org/dev #4
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: | |
- main | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
jobs: | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
steps: | |
# build local version to create token | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: AWS Login | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: eu-west-1 | |
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }} | |
role-session-name: release-create-github-app-token-aws | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build | |
- uses: ./ | |
id: app-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
kms-key-id: ${{ secrets.KMS_KEY_ID }} | |
- uses: octokit/request-action@v2.x | |
id: get-repository | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
with: | |
route: GET /installation/repositories | |
- run: echo '${{ steps.get-repository.outputs.data }}' | |
# install release dependencies and release | |
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag | |
- run: npx semantic-release --debug | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |