Skip to content

Commit

Permalink
fix release CD
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetCarpenter committed Nov 8, 2024
1 parent c2afa1c commit d23e8ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://npm.pkg.github.com'
- name: Cache yarn cache
uses: actions/cache@v4
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-
cache: yarn
cache-dependency-path: yarn.lock
- name: Install and build
run: yarn --frozen-lockfile
env:
Expand All @@ -36,7 +31,7 @@ jobs:
CI: true
- name: Publish with vsce
run: |
npm i -g vsce
yarn global add @vscode/vsce
# Try to publish and ignore any errors (that version was already published)
vsce publish -p $VSCE_TOKEN || true
env:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"url": "https://github.com/Tyriar/vscode-sort-lines/issues"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:prepublish": "yarn compile",
"compile": "tsc -p ./",
"lint": "tslint ./src/*.ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"pretest": "yarn compile",
"test": "node ./out/test/runTest.js",
"compile-web": "webpack",
"watch-web": "webpack --watch",
Expand Down

0 comments on commit d23e8ad

Please sign in to comment.