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:
@@ -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]'
|
||||||
|
|||||||
@@ -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
@@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
languages.javascript = {
|
||||||
|
enable = true;
|
||||||
|
npm.enable = true;
|
||||||
|
};
|
||||||
|
packages = [ ];
|
||||||
|
|
||||||
|
enterShell = "";
|
||||||
|
}
|
||||||
Generated
+6299
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user