-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ on: | |
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: ./logflare-js | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -17,12 +21,12 @@ jobs: | |
registry-url: "https://registry.npmjs.org" | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: yarn | ||
- run: yarn test | ||
- run: yarn build | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run build | ||
- run: npm pack --dry-run | ||
- name: Publish dev package to npm | ||
run: yarn publish --access public --tag dev --new-version $(npm run --silent vsn)-$(echo ${GITHUB_SHA} | cut -c1-8) | ||
run: npm publish --access public --tag dev-$(echo ${GITHUB_SHA} | cut -c1-8) | ||
env: | ||
CI: true | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ name: Publish to npm registry (manual) | |
on: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
working-directory: ./logflare-js | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -15,12 +20,12 @@ jobs: | |
registry-url: "https://registry.npmjs.org" | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: yarn | ||
- run: yarn test | ||
- run: yarn build | ||
- run: npm ci | ||
- run: npm run test | ||
- run: npm run build | ||
- run: npm pack --dry-run | ||
- name: Publish production package to npm | ||
run: yarn publish --access public --tag latest --new-version $(npm run --silent vsn) | ||
run: npm publish --access public --tag latest | ||
env: | ||
CI: true | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |