Skip to content

Commit 3f2112d

Browse files
authored
Merge pull request #24 from urcomputeringpal/fix-package-again
Fix package again, add test
2 parents 5025cc6 + 4b60194 commit 3f2112d

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/npm.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: npm
22
on:
33
push:
4-
branches: main
54

65
jobs:
7-
publish:
6+
build:
87
runs-on: ubuntu-latest
98
steps:
109
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1110
- run: npm ci
12-
- run: npm run format
13-
- run: npm run build
14-
- uses: JS-DevTools/npm-publish@541aa6b21b4a1e9990c95a92c21adc16b35e9551 # v2.1.0
11+
- name: Publish
12+
uses: JS-DevTools/npm-publish@541aa6b21b4a1e9990c95a92c21adc16b35e9551 # v2.1.0
13+
# only on default branch
14+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
1515
with:
1616
access: public
1717
token: ${{ secrets.NPM_TOKEN }}
1818

1919
renovate:
20-
name: Update
21-
needs: publish
20+
name: renovate
21+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
22+
needs: build
2223
uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
2324
with:
2425
renovate_app_slug: ur-renovate

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@urcomputeringpal/github-script-ts",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "actions/github-script for Typescript",
55
"repository": "https://github.com/urcomputeringpal/github-script-ts",
66
"files": [
@@ -13,7 +13,7 @@
1313
"format": "prettier --write .",
1414
"format:check": "prettier --check .",
1515
"build": "tsc",
16-
"prepare": "npm run build",
16+
"prepare": "npm run format && npm run build",
1717
"integration": "./test.sh"
1818
},
1919
"dependencies": {

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"module": "commonjs",
44
"declaration": true,
55
"target": "es5",
6-
"strict": true
6+
"strict": true,
7+
"outDir": "dist"
78
},
89
"include": ["src/*.ts"],
9-
"exclude": ["node_modules", "**/*.test.ts"],
10-
"outDir": "dist"
10+
"exclude": ["node_modules", "**/*.test.ts"]
1111
}

0 commit comments

Comments
 (0)