Skip to content

Commit

Permalink
fix: migrate to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
equinusocio committed Feb 19, 2024
1 parent cb7fa8b commit 8b2bfd3
Show file tree
Hide file tree
Showing 6 changed files with 4,202 additions and 2,496 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,29 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Use Node Version 12
- name: Use Node Version 18
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '18.x'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Get npm cache directory
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
id: yarn-cache
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-node-
- name: Install Dependencies
run: yarn --frozen-lockfile
if: steps.cache-yarn-cache.outputs.cache-hit != 'true' || steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
if: steps.cache-npm-cache.outputs.cache-hit != 'true' || steps.cache-node-modules.outputs.cache-hit != 'true'

- name: Build extension
run: yarn start
run: npm run build

- uses: lannonbr/vsce-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"editor.formatOnSave": false,
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.codeActionsOnSaveTimeout": 2000
}
27 changes: 16 additions & 11 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"version": "2.0.0",
"command": "npm",
"type": "shell",
"presentation": {
"reveal": "always"
},
"tasks": [{
"group": "build",
"label": "build",
"args": ["start"]
}]
"version": "2.0.0",
"tasks": [
{
"args": [
"run",
"build"
],
"command": "npm",
"label": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
}
]
}
Loading

0 comments on commit 8b2bfd3

Please sign in to comment.