-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add github workflows and dependabot config
- Loading branch information
Showing
4 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
groups: | ||
safe-dependencies: | ||
update-types: ['minor', 'patch'] | ||
major-dependencies: | ||
update-types: ['major'] | ||
commit-message: | ||
prefix: deps | ||
prefix-development: deps(dev) | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
groups: | ||
ci-dependencies: | ||
dependency-type: 'production' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Pull Request Events | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-check: | ||
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: pnpm | ||
|
||
- name: 📥 Download dependencies | ||
run: pnpm i | ||
|
||
- name: 🧶 Lint | ||
run: pnpm run lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Push Events | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
release-please: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: 🚀 Create Release | ||
id: release-please | ||
uses: agrc/release-composite-action@v1 | ||
with: | ||
prerelease: ${{ github.ref_name == 'dev' }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }} | ||
github-app-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }} | ||
github-app-name: ${{ secrets.UGRC_RELEASE_BOT_NAME }} | ||
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release Events | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
id-token: write | ||
deployments: write | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
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: | ||
cache: pnpm | ||
node-version: lts/* | ||
|
||
- name: 📥 Download dependencies | ||
run: pnpm i | ||
|
||
- name: 🚢 Deploy to NPM as 'latest' | ||
if: github.event.release.prerelease == false | ||
run: pnpm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: 🚢 Deploy to NPM as 'beta' | ||
if: github.event.release.prerelease == true | ||
run: pnpm publish --tag beta | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
notify: | ||
name: Notifications | ||
needs: deploy | ||
if: github.event.release.prerelease == false | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
issues: write | ||
|
||
steps: | ||
- name: Release Notifier | ||
uses: agrc/release-issue-notifications-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |