Skip to content

chore: release v1.1.15 #105

chore: release v1.1.15

chore: release v1.1.15 #105

Workflow file for this run

name: Pull Request Events
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: 📥 Download dependencies
run: npm ci
- name: 🧵 Lint
run: npm run lint
test-unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: 📥 Download dependencies
run: npm ci
- name: 🧪 Run tests
run: npm test
build:
name: Commit Release Assets
runs-on: ubuntu-latest
if: ${{ github.event.sender.login == 'ugrc-release-bot[bot]' }}
permissions:
contents: write
steps:
- name: 🪙 Convert token
uses: actions/create-github-app-token@v1
id: generate_token
with:
app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }}
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
ref: ${{ github.head_ref }}
token: ${{ steps.generate_token.outputs.token }}
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: 📥 Download dependencies
run: npm ci
- name: 🏗️ Commit and push if needed
run: |
git config user.name "${{ secrets.UGRC_RELEASE_BOT_NAME }}"
git config user.email "${{ secrets.UGRC_RELEASE_BOT_EMAIL }}"
git add dist/*
if [ -z "$(git status --porcelain)" ]; then
echo "no changes to dist/*"
exit 0
fi
git commit -m 'chore: build release assets'
git push