Skip to content

Commit afd1780

Browse files
committed
fix: use dist to release package
1 parent b4e8fcc commit afd1780

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
working-directory: ./spectral
2929
run: yarn setupRelease $GITHUB_REF_SLUG
3030
- name: Publish packages
31-
working-directory: ./spectral
31+
working-directory: ./spectral/dist
3232
run: npm publish --tag=dev
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.RHOAS_NPM_TOKEN }} #

spectral/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "npm run clean && tsc && npm run copy-ruleset",
99
"clean": "rm -rf dist",
1010
"lint": "eslint src/**/*.ts",
11-
"copy-ruleset": "cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json",
11+
"copy-ruleset": "cp rhoasapi ruleset.yaml package.json ./dist ",
1212
"cli-integration-tests": "./scripts/rules.sh",
1313
"setupRelease": "npm version"
1414
},
@@ -45,7 +45,7 @@
4545
},
4646
"homepage": "https://github.com/redhat-developer/app-services-api-guidelines#readme",
4747
"bin": {
48-
"rhoasapi": "./exec/rhoasapi"
48+
"rhoasapi": "./rhoasapi"
4949
},
5050
"files": [
5151
"dist"
File renamed without changes.

0 commit comments

Comments
 (0)