Skip to content

Commit

Permalink
fix(ci): update semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
sleistner committed Jan 2, 2023
1 parent 39bce2e commit 6c12e92
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3,623 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
types:
- published

concurrency:
group: ci-fileutils-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint-test:
name: Lint, Test
Expand All @@ -22,13 +26,13 @@ jobs:
# - windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x

- name: Install dependencies
run: yarn install --no-progress --no-lockfile --ignore-optional
Expand All @@ -43,7 +47,7 @@ jobs:
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
xvfb-run -a yarn run test
env:
DISPLAY: ':99.0'
DISPLAY: ":99.0"
if: runner.os == 'Linux'

- name: Run tests on macOS and Windows
Expand All @@ -53,24 +57,22 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: [ lint-test ]
needs: [lint-test]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false

- uses: actions/setup-node@v2
with:
node-version: 16.x

- name: Install dependencies
run: yarn install --no-progress --no-lockfile --ignore-optional

- name: Semantic Release
run: |
yarn run semantic-release
uses: cycjimmy/semantic-release-action@v3
with:
branch: master
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
semantic-release-vsce
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,10 @@
"pretest": "yarn run build:compile:dev",
"test": "node ./out/test/runTest.js",
"lint": "eslint './{src,test}/**/*.ts'",
"semantic-release": "semantic-release",
"prepare": "[ ! -x ./node_modules/.bin/husky ] && exit 0; husky install"
},
"devDependencies": {
"@enter-at/eslint-config-typescript-prettier": "1.6.0",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "8.0.7",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node18": "1.0.1",
"@types/bluebird": "3.5.38",
"@types/bluebird-retry": "0.11.5",
Expand All @@ -208,8 +201,6 @@
"husky": "8.0.2",
"mocha": "10.2.0",
"prettier": "2.8.1",
"semantic-release": "19.0.5",
"semantic-release-vsce": "5.5.2",
"sinon": "15.0.1",
"sinon-chai": "3.7.0",
"typescript": "4.9.4",
Expand Down
Loading

0 comments on commit 6c12e92

Please sign in to comment.