Skip to content

Commit

Permalink
fix: use dist to release package
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Aug 3, 2022
1 parent b4e8fcc commit afd1780
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
working-directory: ./spectral
run: yarn setupRelease $GITHUB_REF_SLUG
- name: Publish packages
working-directory: ./spectral
working-directory: ./spectral/dist
run: npm publish --tag=dev
env:
NODE_AUTH_TOKEN: ${{ secrets.RHOAS_NPM_TOKEN }} #
4 changes: 2 additions & 2 deletions spectral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "npm run clean && tsc && npm run copy-ruleset",
"clean": "rm -rf dist",
"lint": "eslint src/**/*.ts",
"copy-ruleset": "cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json",
"copy-ruleset": "cp rhoasapi ruleset.yaml package.json ./dist ",
"cli-integration-tests": "./scripts/rules.sh",
"setupRelease": "npm version"
},
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"homepage": "https://github.com/redhat-developer/app-services-api-guidelines#readme",
"bin": {
"rhoasapi": "./exec/rhoasapi"
"rhoasapi": "./rhoasapi"
},
"files": [
"dist"
Expand Down
File renamed without changes.

0 comments on commit afd1780

Please sign in to comment.