Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Fix/publish (#261)
Browse files Browse the repository at this point in the history
* releases 2.0.0

* fix: publish

* fix: publish

* test

* test

* test

* test

* test

* test

* fix: publish
  • Loading branch information
Tiagoperes authored Mar 28, 2022
1 parent 3cdc558 commit 5f9a54d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
# if it's a new version, publish to NPM

- name: clear cache
run: cd packages/beagle-react && yarn cache clean
run: yarn cache clean

- name: install
if: ${{ env.SHOULD_PUBLISH == 'true' }}
run: cd packages/beagle-react && yarn
run: yarn

- name: setup node
if: ${{ env.SHOULD_PUBLISH == 'true' }}
Expand All @@ -72,7 +72,7 @@ jobs:

- name: build
if: ${{ env.SHOULD_PUBLISH == 'true' }}
run: cd packages/beagle-react && yarn build
run: yarn build

- name: Read secrets from AWS Secrets Manager into environment variables
if: ${{ env.SHOULD_PUBLISH == 'true' }}
Expand All @@ -87,6 +87,6 @@ jobs:

- name: publish to NPM
if: ${{ env.SHOULD_PUBLISH == 'true' }}
run: cd packages/beagle-react && cd dist && npm publish --access public
run: cd dist && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ env.BEAGLE_WEB_PUBLISH_NPM_AUTH }}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/utils.js → bin/publish/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function fetchNpmVersion(packageName) {
}

function getPackageJson() {
return require('../package.json')
return require('../../package.json')
}

module.exports = {
Expand Down

0 comments on commit 5f9a54d

Please sign in to comment.