-
Notifications
You must be signed in to change notification settings - Fork 0
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 (#80)
- Loading branch information
1 parent
680adc6
commit 1241987
Showing
21 changed files
with
2,040 additions
and
3,291 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
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,4 +1,7 @@ | ||
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> | ||
|
@@ -10,12 +13,8 @@ jobs: | |
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 }}" | ||
|
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.
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,25 +1,28 @@ | ||
#!/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 yarn install --no-progress --non-interactive | ||
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 yarn lint | ||
.PHONY: lint | ||
lint: ## Run lint | ||
docker run $(RUN_ARGS) npm run lint | ||
|
||
build: ## Build frontend | ||
docker-compose run $(DC_RUN_ARGS) node yarn 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.