Skip to content

Commit

Permalink
Merge pull request #7 from conductor-sdk/create-release-workflow
Browse files Browse the repository at this point in the history
Create github workflow
  • Loading branch information
Sudakatux authored Jun 10, 2024
2 parents 65c28d1 + 67b97a1 commit ebac031
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Delivery

on:
release:
types: [published]

jobs:
build-package-and-publish-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
- name: Bump version to release
run: sed -i "s/v0.0.0/$RELEASE_VERSION/" ./package.json
env:
RELEASE_VERSION: ${{ github.ref_name }}
working-directory: ./react/human-task-material-renderers
- name: Install dependencies required to build package
run: yarn install
working-directory: ./react/human-task-material-renderers
- name: Build package
run: yarn build
working-directory: ./react/human-task-material-renderers
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: ./react/human-task-material-renderers
2 changes: 1 addition & 1 deletion react/human-task-material-renderers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@io-orkes/human-task-material-renderers-react",
"version": "1.0.1",
"version": "v0.0.0",
"private": false,
"license": "Apache-2.0",
"homepage": "https://orkes.io",
Expand Down

0 comments on commit ebac031

Please sign in to comment.