Skip to content

Commit

Permalink
Merge ebb90a3 into 076ec2d
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkfiedler authored Apr 11, 2023
2 parents 076ec2d + ebb90a3 commit 5e2a488
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: publish-package

on:
pull_request:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: "ddf-ui"

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x"

- name: Install dependencies
run: |
cd ./ddf-ui/ui-frontend/packages/catalog-ui-search
yarn install
- name: Build project
run: |
cd ./ddf-ui/ui-frontend/packages/catalog-ui-search
yarn run publish:build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.pull_request.number }}
release_name: Release ${{ github.event.pull_request.number }}
draft: false
prerelease: false

- name: Upload Asset
id: upload_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ddf-ui/ui-frontend/packages/catalog-ui-search/dist
asset_name: catalog-ui-search-${{ github.event.pull_request.number }}.tgz
asset_content_type: application/gzip

0 comments on commit 5e2a488

Please sign in to comment.