generated from actions/javascript-action
-
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.
- Loading branch information
1 parent
268250e
commit 7ef5f32
Showing
28 changed files
with
961 additions
and
1,042 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/master/docs/action-versioning.md#recommendations> | ||
name: 🚀 Update latest major git tag | ||
name: Update latest major git tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run this action | ||
uses: ./ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ yarn.lock | |
|
||
# Logs | ||
logs | ||
*.log* | ||
*.log | ||
|
||
# Temp dirs & trash | ||
/temp | ||
|
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,28 +1,32 @@ | ||
#!/usr/bin/make | ||
# Makefile readme (ru): <https://blog.hook.sh/nix/makefile-full-doc/> | ||
# Makefile readme (en): <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents> | ||
# Makefile readme: <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents> | ||
|
||
SHELL = /bin/bash | ||
DC_RUN_ARGS = --rm --user "$(shell id -u):$(shell id -g)" | ||
.DEFAULT_GOAL := build | ||
.MAIN := build | ||
|
||
.PHONY : help install shell lint test build | ||
.DEFAULT_GOAL : help | ||
|
||
help: ## Show this help | ||
@printf "\033[33m%s:\033[0m\n" 'Available commands' | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
NODE_IMAGE = node:20-alpine | ||
RUN_ARGS = --rm -v "$(shell pwd):/src:rw" \ | ||
-t --workdir "/src" \ | ||
-u "$(shell id -u):$(shell id -g)" \ | ||
-e "NPM_CONFIG_UPDATE_NOTIFIER=false" \ | ||
-e PATH="$$PATH:/src/node_modules/.bin" $(NODE_IMAGE) | ||
|
||
.PHONY: install | ||
install: ## Install all dependencies | ||
docker-compose run $(DC_RUN_ARGS) node npm install | ||
docker run $(RUN_ARGS) npm install | ||
|
||
.PHONY: shell | ||
shell: ## Start shell into a container with node | ||
docker-compose run $(DC_RUN_ARGS) node sh | ||
docker run -e "PS1=\[\033[1;34m\]\w\[\033[0;35m\] \[\033[1;36m\]# \[\033[0m\]" -i $(RUN_ARGS) sh | ||
|
||
lint: ## Execute provided linters | ||
docker-compose run $(DC_RUN_ARGS) node npm run lint | ||
.PHONY: lint | ||
lint: ## Run lint | ||
docker run $(RUN_ARGS) npm run lint | ||
|
||
test: ## Execute provided tests | ||
docker-compose run $(DC_RUN_ARGS) node npm run test | ||
.PHONY: test | ||
test: ## Run tests | ||
docker run $(RUN_ARGS) npm run test | ||
|
||
build: ## Build frontend | ||
docker-compose run $(DC_RUN_ARGS) node npm run build | ||
.PHONY: build | ||
build: install ## Build the extension and pack it into a zip file | ||
docker run $(RUN_ARGS) npm run build |
Oops, something went wrong.