build: fix credential handling in workflow #19
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' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: > | |
( | |
startsWith(github.event.head_commit.message, 'feat') || | |
startsWith(github.event.head_commit.message, 'fix') || | |
startsWith(github.event.head_commit.message, 'refactor') || | |
contains(github.event.head_commit.message, '!release') | |
) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
scope: sbb-esta | |
- name: Yarn Install | |
uses: ./.github/actions/yarn-install | |
- name: 'Release: Set git user' | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
- name: Release | |
uses: ./.github/actions/release | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }} | |
aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }} | |
github-token: ${{ secrets.DISPATCH_TOKEN }} |