Skip to content

Commit 383eb82

Browse files
committed
trivial change
1 parent dee5881 commit 383eb82

File tree

1 file changed

+5
-60
lines changed

1 file changed

+5
-60
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ env:
44
APP_NAME: ngrok
55
MACOSX_DEPLOYMENT_TARGET: '10.13'
66
on:
7+
workflow_call:
8+
secrets:
9+
NGROK_AUTHTOKEN:
10+
required: true
711
push:
812
branches:
913
- '**'
@@ -505,63 +509,4 @@ jobs:
505509
with:
506510
name: bindings-universal-apple-darwin
507511
path: ${{ env.APP_NAME }}.*.node
508-
if-no-files-found: error
509-
510-
publish:
511-
if: github.ref == 'refs/heads/main' && github.repository == 'ngrok/ngrok-javascript'
512-
name: Publish
513-
runs-on: ubuntu-latest
514-
needs:
515-
- udeps
516-
- fmt
517-
- clippy
518-
- build-freebsd
519-
- test-windows-msvc-binding
520-
- test-linux-x64-gnu-binding
521-
- test-linux-x64-musl-binding
522-
- test-linux-aarch64-gnu-binding
523-
- test-linux-aarch64-musl-binding
524-
- test-linux-arm-gnueabihf-binding
525-
- universal-macOS
526-
steps:
527-
- uses: actions/checkout@v4
528-
529-
- name: Setup node
530-
uses: actions/setup-node@v4
531-
with:
532-
node-version: 18
533-
cache: yarn
534-
535-
- name: Install dependencies
536-
run: yarn install
537-
538-
- name: Download all artifacts
539-
uses: actions/download-artifact@v4
540-
with:
541-
path: artifacts
542-
543-
- name: Move artifacts
544-
run: yarn artifacts
545-
546-
- name: List packages
547-
run: ls -R ./npm
548-
shell: bash
549-
550-
- name: Publish
551-
run: |
552-
echo "git log:"
553-
git log -1 --pretty=%B
554-
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
555-
then
556-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
557-
npm publish --access public
558-
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
559-
then
560-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
561-
npm publish --tag next --access public
562-
else
563-
echo "Not a release, skipping publish"
564-
fi
565-
env:
566-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
567-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
512+
if-no-files-found: error

0 commit comments

Comments
 (0)