diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2283ed4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build +on: + push: + branches: main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + token: ${{secrets.BOT_TOKEN}} + - uses: crazy-max/ghaction-import-gpg@v3.0.2 + with: + gpg-private-key: ${{secrets.BOT_GPG_SIGN_KEY}} + git-user-signingkey: true + - run: npm ci + - run: git diff --quiet || git commit --all -m 'Build' --gpg-sign=FD5E66973D2B8B86 + - run: git push --signed=if-asked diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 4014f28..af777e1 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -19,5 +19,5 @@ jobs: uses: ./node-version # this would be nodenv/actions/node-version@v2 for most users - uses: actions/setup-node@v1 with: - node-version: '${{ steps.nodenv.outputs.node-version }}' + node-version: "${{ steps.nodenv.outputs.node-version }}" - run: node -v diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a6f686..f8493b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Release on: - push: { tags: 'v[0-9]+.[0-9]+.[0-9]+' } + push: { tags: "v[0-9]+.[0-9]+.[0-9]+" } jobs: github: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 89213b0..2fb6c72 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -2,7 +2,7 @@ name: Sync Subtrees on: push: branches: main - tags: 'v[0-9]+.[0-9]+.[0-9]+' + tags: "v[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c9895f..69ec3df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,5 @@ name: Test -on: [ push, pull_request ] +on: [push, pull_request] jobs: test: