Skip to content

Commit

Permalink
ci: fix release step by building package prior to release
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Jun 6, 2024
1 parent f7104a0 commit 68f731e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,21 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: npx nx run @pine-ds/icons:build
shell: bash

- name: Release
if: inputs.version == ''
run: npx nx release --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release using Input Version
if: inputs.version != ''
run: npx nx release ${{inputs.version}} --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

send-slack-notification:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/send-slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
fetch-depth: 0

- name: Pull latest
run: git pull

- name: Setup ENV Vars
run: |
echo 'PACKAGE_JSON<<EOF' >> $GITHUB_ENV
Expand Down
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68f731e

Please sign in to comment.