Skip to content

Commit 3607afe

Browse files
sebjacobschrislo
andcommitted
fix: publish package from root dir (using workspace)
Co-authored-by: Chris Lowis <[email protected]>
1 parent 3a83668 commit 3607afe

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,18 @@ jobs:
9696
with:
9797
package_name: scratch-gui
9898

99-
- name: Publish scratch-gui to GitHub Packages
100-
working-directory: ./packages/scratch-gui
101-
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for publishing private npm packages
99+
# - name: Publish scratch-gui to GitHub Packages
100+
# working-directory: ./packages/scratch-gui
101+
# env:
102+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for publishing private npm packages
103+
# run: |
104+
# RELEASE_VERSION="0.1.0-experience-cs.$(date +'%Y%m%d%H%M%S')"
105+
# npm version --no-git-tag-version $RELEASE_VERSION
106+
# npm publish --access public --tag latest
107+
- name: Publish scratch-gui
103108
run: |
104109
RELEASE_VERSION="0.1.0-experience-cs.$(date +'%Y%m%d%H%M%S')"
105-
npm version --no-git-tag-version $RELEASE_VERSION
106-
npm publish --access public --tag latest
110+
npm version --no-git-tag-version $RELEASE_VERSION --workspace=@RaspberryPiFoundation/scratch-gui
111+
npm publish --access=public --tag latest --workspace=@RaspberryPiFoundation/scratch-gui
112+
env:
113+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # for publishing private npm packages

0 commit comments

Comments
 (0)