Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vs4vijay committed Aug 1, 2024
1 parent 9f2317a commit ba3a00f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 36 deletions.
43 changes: 14 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ jobs:
with:
node-version: '20'
registry-url: https://registry.npmjs.org/

- name: Check Version - ${{ needs.build.outputs.version }}
run: |
set -x
echo ${{ needs.build.outputs.version }}

- name: List all files
if: always()
Expand All @@ -130,17 +124,14 @@ jobs:
pwd
ls -all
tree
# TODO: Remove once CI validated
# - run: |
# LATEST=`npm view . version`
# CURRENT=`cat package.json | jq -r .version`
# if [ "$LATEST" != "$CURRENT" ]
# then
# npm ci
# npm publish
# fi
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- name: Publish to npm registry
run: |
set -x
npm publish newman-reporter-influxdb-*.tgz
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

publish-gpr:
needs: [github-release]
Expand All @@ -165,14 +156,7 @@ jobs:
pwd
ls -all
tree
# - run: |
# LATEST=`npm view . version`
# CURRENT=`cat package.json | jq -r .version`
# if [ "$LATEST" != "$CURRENT" ]
# then
# npm ci
# npm publish --access public
# fi
- name: Modify package.json to add @vs4vijay
run: |
node <<EOF
Expand All @@ -186,8 +170,9 @@ jobs:
process.exit(1);
});
EOF
# - run: npm ci
# TODO: Remove once CI validated
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish --access public newman-reporter-influxdb-*.tgz
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
15 changes: 8 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: npm publish

# on:
# # push:
# # branches:
# # - master
# # - develop
# release:
# types: [published]
on:
workflow_dispatch:
# push:
# branches:
# - master
# - develop
# release:
# types: [published]

jobs:
build:
Expand Down

0 comments on commit ba3a00f

Please sign in to comment.