Skip to content

Commit

Permalink
πŸ’š publish when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed Oct 17, 2023
1 parent 4dfae64 commit 07eb009
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/build-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,7 @@ jobs:
with:
install-modules: false

- name: 'Get variables πŸ“—'
id: 'vars'
run: |
echo "version_already_exists=false" >> "$GITHUB_OUTPUT"
echo "beta_version=true" >> "$GITHUB_OUTPUT"
- name: 'Publish to NPM πŸš€'
if: |
steps.vars.outputs.version_already_exists == 'false'
&& (
github.ref_name == github.event.repository.default_branch
|| steps.vars.outputs.beta_version == 'true'
)
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}'
run: |-
npm publish \
--workspaces
uses: 'dudeofawesome/actions/npm-publish@main'

0 comments on commit 07eb009

Please sign in to comment.