-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into update-batch-key-logic
- Loading branch information
Showing
78 changed files
with
3,957 additions
and
394 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 |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
branches: [develop] | ||
types: [opened, reopened, synchronize] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} | ||
|
@@ -29,7 +32,7 @@ jobs: | |
- name: Install and Build 🔧 | ||
run: | | ||
npm install | ||
npx prettier --check "**/*.{graphql,yml,json,md,sh,ts,tsx,js}" | ||
npx prettier --check "**/*.{graphql,yml,json,md,sh,ts,tsx,js,css}" | ||
npm run build | ||
- name: Deploy 🚀 | ||
|
@@ -38,23 +41,26 @@ jobs: | |
with: | ||
folder: build | ||
|
||
- name: Get changed markdown files | ||
id: changed-markdown-files | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
files: | | ||
blog/**/*.{md,mdx} | ||
- name: Publish to Hashnode and Dev.to 📝 | ||
if: github.ref == 'refs/heads/develop' && steps.changed-markdown-files.outputs.any_changed == 'true' | ||
env: | ||
HASHNODE_PAT: ${{ secrets.HASHNODE_PAT }} | ||
HASHNODE_PUBLICATION_ID: ${{ secrets.HASHNODE_PUBLICATION_ID }} | ||
CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} | ||
DEVTO_API_KEY: ${{ secrets.DEVTO_API_KEY}} | ||
DEVTO_ORG_ID: ${{secrets.DEVTO_ORG_ID}} | ||
DEVTO_ORG_NAME: ${{secrets.DEVTO_ORG_NAME}} | ||
run: | | ||
cd ./publish-externals | ||
npm run generate | ||
npx --yes tsx ./src/index.ts "$CHANGED_FILES" | ||
if [ "$GITHUB_REF" == "refs/heads/develop" ]; then | ||
npx --yes tsx ./src/index.ts --publish | ||
else | ||
npx --yes tsx ./src/index.ts | ||
fi | ||
- name: Commit and push changes (on develop) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
branch: develop | ||
commit_author: Author <[email protected]> | ||
commit_message: "[ci skip] update snapshot" |
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,30 @@ | ||
name: PR Title Validation | ||
|
||
on: | ||
# pull_request_target is ok until we do not checkout and build external code | ||
# TODO: maybe it is not required after all https://github.com/amannn/action-semantic-pull-request/issues/219 | ||
pull_request_target: | ||
types: [opened, reopened, synchronize, edited] | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
title-check: | ||
name: Check PR Title | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: PR Title | ||
uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Bounty PR Title | ||
if: contains(github.event.pull_request.labels.*.name, '🙋 Bounty claim') | ||
uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
requireScope: true | ||
scopes: \d+ |
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 |
---|---|---|
|
@@ -23,3 +23,4 @@ yarn-error.log* | |
.idea/ | ||
src/*/*.json | ||
.vscode/ | ||
.gitpod.yml |
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
Oops, something went wrong.