-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: extend apps config for renovate and add reviewers * ci: add spaenleh as reviewer in renovate config * fix: migrate to vite BREAKING CHANGE: building process has changed * fix(deps): update commitlint * ci: add on merge_group to build and cypress workflows
- Loading branch information
Showing
49 changed files
with
2,548 additions
and
7,459 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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
build | ||
public | ||
coverage | ||
src/registerServiceWorker.js | ||
cypress/integration/examples | ||
|
||
node_modules | ||
.yarn/.cache | ||
.husky | ||
.nyc_output | ||
.yarn | ||
commitlint.config.js |
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
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,22 @@ | ||
name: Build and Check | ||
|
||
on: | ||
push: | ||
merge_group: | ||
|
||
jobs: | ||
build: | ||
concurrency: build-${{ github.head_ref || github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Yarn Install and Cache | ||
uses: graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1 | ||
|
||
- name: Lint | ||
run: yarn check | ||
|
||
- name: Build | ||
run: yarn build |
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Automate releases of new app versions | ||
name: release-please | ||
|
||
on: | ||
|
@@ -10,26 +9,15 @@ jobs: | |
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
- uses: google-github-actions/release-please-action@v4 | ||
id: release | ||
with: | ||
release-type: node | ||
package-name: graasp-app-file-drop | ||
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"test","section":"Tests","hidden":false}]' | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
# creates minor and major tags that follow the latest release | ||
- name: Tag major and minor versions | ||
uses: jacobsvante/[email protected] | ||
if: ${{ steps.release.outputs.releases_created }} | ||
with: | ||
major: ${{ steps.release.outputs.major }} | ||
minor: ${{ steps.release.outputs.minor }} | ||
|
||
# put created tag in an env variable to be sent to the dispatch | ||
- name: Set tag | ||
if: ${{ steps.release.outputs.releases_created }} | ||
if: ${{ steps.release.outputs.releases_created == 'true' }} | ||
id: set-tag | ||
run: | | ||
REPOSITORY=$(echo '${{ github.repository }}') | ||
|
@@ -39,13 +27,13 @@ jobs: | |
# Trigger an 'on: repository_dispatch' workflow to run in graasp-deploy repository | ||
- name: Push tag to Graasp Deploy (Staging) | ||
if: ${{ steps.release.outputs.releases_created }} | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: ${{ steps.release.outputs.releases_created == 'true' }} | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
repository: graasp/graasp-deploy | ||
event-type: update-staging-version | ||
client-payload: ${{ steps.set-tag.outputs.json }} | ||
client-payload: ${{steps.set-tag.outputs.json}} | ||
|
||
- name: Auto Tag | ||
uses: graasp/graasp-deploy/.github/actions/auto-tag-after-release@v1 | ||
|
Oops, something went wrong.