use string key instead of id #11
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "src/**" | |
- "**.json" | |
- "**.toml" | |
- ".github/workflows/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: Build and Prepare | |
run: | | |
npm ci | |
npx webpack | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "crowdis-builderman[bot]" | |
git commit -m "ci: automated build" dist/crowdis.js | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
force: true |