Skip to content

chore(release): 0.1.1 #44

chore(release): 0.1.1

chore(release): 0.1.1 #44

Workflow file for this run

name: release
on:
push:
branches: ["main"]
tags-ignore: ['**']
jobs:
tests:
uses: ./.github/workflows/tests.yml
tag-release:
runs-on: ubuntu-latest
needs: [tests]
steps:
- uses: actions/checkout@v4
with: # important, must be defined on checkout to kick publish (defining in setup/node doesn't work)
token: ${{ secrets.GH_TOKEN || github.token }}
- name: node
uses: actions/setup-node@v4
with:
node-version: 20.x
# cache: "npm" # needs lockfile if enabled
- name: go
uses: actions/setup-go@v4
with:
go-version: 1.21.4
- name: tag release
run: |
# ignore if commit message is chore(release): ...
if [[ $(git log -1 --pretty=%B) =~ ^chore\(release\):.* ]]; then
echo "Commit message starts with 'chore(release):', skipping release"
exit 0
fi
git config --local user.email "[email protected]"
git config --local user.name "creadbot_github"
set -ev
npm install
npm run sync
if [[ -n $(git status -s) ]]; then
git add -A
git commit -am "chore(release): sync aws-sdk-go-v2"
fi
npx commit-and-tag-version
git push
git push --tags