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
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'yarn'
|
||||
cache: 'npm'
|
||||
- name: Install project dependencies
|
||||
run: yarn --prefer-offline
|
||||
run: npm install
|
||||
- name: Build
|
||||
run: yarn build
|
||||
run: npm run build
|
||||
- name: Commit & Push changes
|
||||
run: |
|
||||
git config user.name 'github-actions[bot]'
|
||||
|
||||
@@ -12,8 +12,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
yarn
|
||||
yarn all
|
||||
npm i
|
||||
npm run format
|
||||
npm run lint
|
||||
npm run test
|
||||
npm run build
|
||||
test: # make sure the action works on a clean machine without building
|
||||
runs-on: ubuntu-latest
|
||||
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-check": "prettier --check **/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"test": "jest",
|
||||
"all": "yarn build && yarn format && yarn lint && yarn pack && yarn test"
|
||||
"test": "jest"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user