-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from yarn to npm and refactor the action code (#34)
- Loading branch information
1 parent
1173e98
commit 4683764
Showing
24 changed files
with
1,363 additions
and
946 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,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json", | ||
"name": "default", | ||
"image": "node:20-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/sshd:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "npm install" | ||
} |
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
dist/** -diff linguist-generated=true | ||
* text=auto | ||
|
||
# Disable next extensions in project "used languages" list | ||
dist/** -diff linguist-generated=true | ||
Makefile linguist-detectable=false |
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,13 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-release-config.json | ||
# docs: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | ||
|
||
changelog: | ||
categories: | ||
- title: 🛠 Fixes | ||
labels: [type:fix, type:bug] | ||
- title: 🚀 Features | ||
labels: [type:feature, type:feature_request] | ||
- title: 📦 Dependency updates | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ['*'] |
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,33 +1,29 @@ | ||
name: release | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
|
||
name: 🚀 Release | ||
|
||
on: | ||
release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release> | ||
types: [published] | ||
|
||
jobs: | ||
update-git-tag: # Reason: <https://github.com/actions/toolkit/blob/main/docs/action-versioning.md#recommendations> | ||
update-git-tag: # Reason: <https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations> | ||
name: Update latest major git tag | ||
runs-on: ubuntu-20.04 | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: gacts/github-slug@v1 | ||
id: slug | ||
|
||
- name: Setup git | ||
env: {REPO_PATH: "${{ github.repository_owner }}/${{ github.event.repository.name }}"} | ||
- {uses: gacts/github-slug@v1, id: slug} | ||
- env: {REPO_PATH: "${{ github.repository_owner }}/${{ github.event.repository.name }}"} | ||
run: | | ||
git config --local user.email '[email protected]' | ||
git config --local user.name "${{ github.actor }}" | ||
git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/$REPO_PATH.git" | ||
- name: Update major tag | ||
env: {VERSION: "${{ steps.slug.outputs.version-major }}"} | ||
run: | | ||
git tag -fa "v$VERSION" -m "Update v$VERSION tag (using GitHub actions)" | ||
git push --set-upstream origin "v$VERSION" --force | ||
- name: Update minor tag | ||
env: {VERSION: "${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }}"} | ||
run: | | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.