@@ -55,36 +55,10 @@ jobs:
5555 if : ${{ steps.check-tag.outputs.IS_RELEASE == 'true' }}
5656 # Bump ephemeral version based on git tag which we previously confirmed to be set
5757 run : npm --no-git-tag-version version from-git
58- - name : Pack up package
59- id : pack
60- # if: ${{ steps.check-tag.outputs.IS_RELEASE == 'true' }}
61-
62- # Write the output of the pack command to the PACKAGE environment variable
63- # The output of the pack command is the path to generated the tarball
64- # Used later to upload the artifact
65- run : pnpm pack --pack-destination output
66-
67- - name : Archive production artifacts
68- uses : actions/upload-artifact@v4
69- if : ${{ steps.check-tag.outputs.IS_RELEASE == 'true' }}
70- with :
71- name : package-file
72- # Now we only need to upload the tarball which should have all the files npm cares for
73- path : output
74-
75- publish-npm :
76- # Only publish when a release tag is pushed
77- needs : build
78- if : ${{ needs.build.outputs.IS_RELEASE == 'true' }}
79- runs-on : ubuntu-latest
80- steps :
81- # The npmrc is created here and is not the same as in the repository as that does not exist here
8258 - name : Setup .npmrc file to publish to npm
59+ if : ${{ steps.check-tag.outputs.IS_RELEASE == 'true' }}
8360 run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
84- - name : Download build artifacts
85- uses : actions/download-artifact@v4
86- with :
87- name : package-file
8861 - name : Publish artifacts to npm
62+ if : ${{ steps.check-tag.outputs.IS_RELEASE == 'true' }}
8963 # Need to add --access public to publish scoped package
90- run : npm publish output --provenance --access public
64+ run : pnpm publish --provenance --access public
0 commit comments