-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45faa8e
commit 523405e
Showing
7 changed files
with
97 additions
and
25 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
# # Customize to whatever interval you need: | ||
# # https://crontab.guru/ | ||
# - cron: '35 * * * *' | ||
|
||
# | ||
# jobs: | ||
# publish-page: | ||
# name: Publish page | ||
|
@@ -35,13 +35,14 @@ | |
# # This line will notify a Teams channel everytime your project successfully publishes | ||
# # GRAPHICS_SERVER_NOTIFY_TEAMS_CHANNEL: # Add a Teams webhook URL here | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# - uses: actions/checkout@v4 | ||
# - uses: pnpm/action-setup@v4 | ||
# - uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: '16.15.0' | ||
# cache: 'yarn' | ||
# node-version: 20 | ||
# cache: pnpm | ||
# - run: git config user.name github-actions | ||
# - run: git config user.email [email protected] | ||
# - run: yarn install | ||
# - run: yarn upload | ||
# - run: yarn publish:publish | ||
# - run: pnpm install | ||
# - run: pnpm upload | ||
# - run: pnpm publish:publish |
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,52 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
concurrency: ${{github.repository}}-${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- id: pnpm | ||
name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- id: setup | ||
name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- id: install | ||
name: Install dependencies | ||
run: pnpm i | ||
|
||
|
||
- id: changesets | ||
name: Create release Pull Request or publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm changeset version | ||
publish: pnpm changeset publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ permissions: | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
types: [opened, reopened] | ||
jobs: | ||
|
@@ -15,20 +15,39 @@ jobs: | |
env: | ||
TESTING: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- id: checkout | ||
name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Config git | ||
fetch-depth: 0 | ||
|
||
- id: pnpm | ||
name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- id: setup | ||
name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- id: install | ||
name: Install dependencies | ||
run: pnpm i | ||
|
||
- id: config-git | ||
name: Config git | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Run tests | ||
run: npx mocha | ||
- name: Create issue on fail | ||
- id: test | ||
name: Run tests | ||
run: pnpm test | ||
|
||
- id: report | ||
name: Create issue on fail | ||
uses: JasonEtco/create-an-issue@v2 | ||
if: ${{ failure() }} | ||
env: | ||
|
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