Skip to content

Commit

Permalink
fix npm version 9.9.0 on github (#281)
Browse files Browse the repository at this point in the history
Co-authored-by: Ohad Bitton <[email protected]>
  • Loading branch information
ohadbitt and ohbitton authored Oct 31, 2023
1 parent 92b34f8 commit d6df72e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 59 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: js Package

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Publish new versions
run: |
npm install -g npm@latest
npm ci
npx lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
name: js Package

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Publish new versions
run: |
npm install -g npm@9.9.0
npm ci
npx lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
72 changes: 36 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: "npm"
cache-dependency-path: |
package-lock.json
- name: Package
run: |
lerna exec -- npm pack
- name: Github Release
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: packages/azure-kusto-data/*.tgz packages/azure-kusto-ingest/*.tgz packages/quick_start/*.tgz
- name: Publish new versions
run: |
npm install -g npm@latest
npm ci
npm run build
lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
name: release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: "npm"
cache-dependency-path: |
package-lock.json
- name: Package
run: |
lerna exec -- npm pack
- name: Github Release
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: packages/azure-kusto-data/*.tgz packages/azure-kusto-ingest/*.tgz packages/quick_start/*.tgz
- name: Publish new versions
run: |
npm install -g npm@9.9.0
npm ci
npm run build
lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit d6df72e

Please sign in to comment.