Skip to content

Commit

Permalink
Shared GHA for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jimid27 committed Nov 1, 2023
1 parent a1c524b commit ef05e58
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: prefecthq/actions-release-ui-components@main
with:
node-version-file: ".nvmrc"

- name: Install dependencies
run: npm ci

- name: Build package
run: npm run build

- name: Publish Package
id: publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
access: public
strategy: upgrade

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.publish.outputs.version }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="Release ${tag#v}" \
--generate-notes
NPM_TOKEN: ${{ secrets.PREFECT_UI_COMPONENTS_NPM_TOKEN }}

0 comments on commit ef05e58

Please sign in to comment.