1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2026-07-04 07:39:20 +02:00

chore: package upgrades & switch to npm

This commit is contained in:
Benjamin Levesque
2026-05-09 19:51:06 +02:00
parent 5f991653a0
commit dbe07338b3
7 changed files with 6324 additions and 3580 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
eval "$(devenv direnvrc)"
use devenv
+3 -3
View File
@@ -18,11 +18,11 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: '16'
cache: 'yarn' cache: 'npm'
- name: Install project dependencies - name: Install project dependencies
run: yarn --prefer-offline run: npm install
- name: Build - name: Build
run: yarn build run: npm run build
- name: Commit & Push changes - name: Commit & Push changes
run: | run: |
git config user.name 'github-actions[bot]' git config user.name 'github-actions[bot]'
+5 -2
View File
@@ -12,8 +12,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: | - run: |
yarn npm i
yarn all npm run format
npm run lint
npm run test
npm run build
test: # make sure the action works on a clean machine without building test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, config, ... }:
{
languages.javascript = {
enable = true;
npm.enable = true;
};
packages = [ ];
enterShell = "";
}
+6299
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -9,8 +9,7 @@
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts", "format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"test": "jest", "test": "jest"
"all": "yarn build && yarn format && yarn lint && yarn pack && yarn test"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
-3573
View File
File diff suppressed because it is too large Load Diff