Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
chore: update release process (#1018)
Browse files Browse the repository at this point in the history
* chore: update release process
* chore: remove code-ql scanning
* chore: do not use semantic-release as dependency
* chore: add gh token
  • Loading branch information
KnisterPeter authored Mar 28, 2023
1 parent af37fd0 commit 6c03656
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 1,739 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,25 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: |
yarn install
- run: |
yarn linter
- run: |
yarn test
- run: |
yarn coverage
cache: 'yarn'
- run: yarn install
- run: yarn linter
- run: yarn test
- run: yarn coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- run: yarn install
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
51 changes: 0 additions & 51 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/shipjs-prepare.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/shipjs-trigger.yml

This file was deleted.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretend",
"version": "3.1.1",
"version": "0.0.0-development",
"description": "A decorator based http webservice client written in typescript",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -16,11 +16,12 @@
"test": "jest",
"coverage": "codecov",
"watch:build": "tsc --watch --sourceMap",
"watch:test": "yarn test -- --watch"
"watch:test": "yarn test -- --watch",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "KnisterPeter/pretend"
"url": "https://github.com/KnisterPeter/pretend.git"
},
"author": {
"name": "Markus Wolf",
Expand All @@ -38,7 +39,6 @@
"nock": "13.2.9",
"prettier": "2.8.7",
"rimraf": "3.0.2",
"shipjs": "0.26.1",
"ts-jest": "29.0.5",
"tslint": "6.1.3",
"typescript": "4.9.5"
Expand All @@ -57,7 +57,9 @@
"/node_modules/",
"/dist/"
],
"testURL": "http://localhost",
"testEnvironmentOptions": {
"url": "http://localhost"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**"
Expand Down
1 change: 0 additions & 1 deletion ship.config.js

This file was deleted.

Loading

0 comments on commit 6c03656

Please sign in to comment.