Skip to content

Commit

Permalink
fix: Release job not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeltscher committed Dec 20, 2022
1 parent 2ea1a64 commit 065fa9c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 25 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Release
name: Release npm package

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@main
- uses: actions/setup-node@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Release
node-version: '18.x'
- run: npm install
- run: npm run build
- name: semantic release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ node_modules
.node_repl_history

# Typescript stuff
build
coverage
dist

package-lock.json
2 changes: 1 addition & 1 deletion config/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "commonjs",
"moduleResolution": "node",
"removeComments": false,
"outDir": "../build",
"outDir": "../dist",
"rootDir": "../src",
"declaration": true,
"sourceMap": false,
Expand Down
3 changes: 0 additions & 3 deletions config/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "../"
}
}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "proc-that",
"version": "0.0.0-development",
"description": "proc(ess)-that - easy extendable etl tool for nodejs written in typesript",
"main": "index.js",
"typings": "index.d.js",
"main": "dist/index.js",
"typings": "dist/index.d.js",
"scripts": {
"clean": "del-cli ./build ./coverage",
"clean": "del-cli ./dist ./coverage",
"build": "npm run clean && tsc -p ./config/tsconfig.build.json",
"develop": "npm run clean && tsc -p .",
"lint": "npm run lint:ts && npm run prettier",
Expand All @@ -15,9 +15,7 @@
"prettier": "prettier --config .prettierrc.json --list-different \"./**/*.{ts,tsx}\"",
"prettier:fix": "prettier --config .prettierrc.json --list-different \"./**/*.{ts,tsx}\" --write",
"test": "npm run lint && npm run clean && jest -c ./jest.json",
"test:watch": "npm run clean && jest -c ./jest.json --watch",
"typedoc": "del-cli ./docs && typedoc --ignoreCompilerErrors --out ./docs --mode file --tsconfig ./config/tsconfig.build.json ./src/",
"semantic-release": "semantic-release"
"test:watch": "npm run clean && jest -c ./jest.json --watch"
},
"keywords": [
"etl",
Expand All @@ -42,10 +40,8 @@
"eslint": "^8.30.0",
"jest": "^29.3.1",
"prettier": "^2.8.1",
"semantic-release": "^19.0.5",
"ts-jest": "^29.0.3",
"tsutils": "^3.21.0",
"typedoc": "^0.23.23",
"typescript": "^4.9.4"
},
"dependencies": {
Expand Down

0 comments on commit 065fa9c

Please sign in to comment.