Skip to content

Commit 803b70c

Browse files
committed
adapt publish
1 parent 3c01731 commit 803b70c

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

.github/workflows/build.yml

-21
Original file line numberDiff line numberDiff line change
@@ -336,25 +336,4 @@ jobs:
336336
npm whoami
337337
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then
338338
npm publish --tag alpha
339-
else
340-
npm publish
341339
fi
342-
343-
publish-github:
344-
name: Publish GitHub release
345-
needs:
346-
- test
347-
- ember-try
348-
- build
349-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
350-
runs-on: ubuntu-latest
351-
steps:
352-
- name: Create release
353-
uses: actions/create-release@v1
354-
env:
355-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
356-
with:
357-
tag_name: ${{ github.ref }}
358-
release_name: ${{ github.ref }}
359-
draft: false
360-
prerelease: false

.github/workflows/publish.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs:
5353
- run: pnpm install --frozen-lockfile
5454
- name: npm publish
5555
run: pnpm release-plan publish --singlePackage=ember-inspector
56-
5756
env:
5857
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test": "tests"
1111
},
1212
"scripts": {
13+
"prepublishOnly": "node -e 'process.exit(!require(\"fs\").existsSync(\"./dist\"))' || pnpm build:production",
1314
"build": "ember build",
1415
"build:production": "EMBER_ENV=production node scripts/download-panes.js && ember build --environment production && gulp compress:chrome && gulp compress:firefox && gulp clean-tmp",
1516
"changelog": "github_changelog_generator -u emberjs -p ember-inspector --since-tag v3.8.0",

0 commit comments

Comments
 (0)