Skip to content

Commit

Permalink
Merge pull request #8 from peaqnetwork/fix/1205230144231031_npm-publi…
Browse files Browse the repository at this point in the history
…sh-flow

Fix/1205230144231031 npm publish flow
  • Loading branch information
niazhussain authored Aug 22, 2023
2 parents c86d991 + 793f8ca commit 09bac62
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/publish-to-npm-reg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,25 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: 'nhussain'
#- run: npm ci
- run: npm install
#- run: npm install
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: ./packages/${{ matrix.packages }}
- name: Install Nx CLI
run: npm install -g nx

- name: Install dependencies
run: npm install

- name: Build Nx Project
run: nx build @peaq-network/${{ matrix.packages }}
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish ${{ matrix.packages }}
working-directory: ./packages/${{ matrix.packages }}
#working-directory: ./packages/
run: |
npm publish
node tools/scripts/publish.mjs @peaq-network/${{ matrix.packages }} ${{ steps.package-version.outputs.current-version}} latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "peaq network <[email protected]>",
"name": "@peaq-network/sdk",
"version": "0.4.4",
"version": "0.4.5",
"description": "peaq network sdk",
"license": "Apache-2.0",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "peaq network <[email protected]>",
"name": "@peaq-network/types",
"version": "0.3.0",
"version": "0.4.5",
"license": "Apache-2.0",
"description": "Typescript definitions for the peaq network",
"repository": {
Expand Down

0 comments on commit 09bac62

Please sign in to comment.