Skip to content

Commit

Permalink
chore: update deploy-site workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Sep 21, 2023
1 parent fece0e3 commit fdcd118
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,19 @@ jobs:
repository: kevinchappell/formBuilder
fetch-depth: 1
ref: master
path: formBuilder

- name: Extract version from FormBuilder's package.json
id: get-version
run: |
VERSION=$(jq -r .version formBuilder/package.json)
echo "::set-output name=version::$VERSION"
- name: Checkout formBuilder-site
uses: actions/checkout@v3
with:
repository: kevinchappell/formBuilder-site
path: formBuilder-site
fetch-depth: 1
ref: master
token: ${{ secrets.FORMBUILDER_SITE_PAT }}
Expand All @@ -39,10 +47,9 @@ jobs:
node-version: 18
cache: 'npm'


- name: Update website dependencies
run: |
cd kevinchappell/formBuilder-site
npm update formBuilder formBuilder-languages
npm version $(cd ../formBuilder && node -p "require('./package.json').version")
npm version ${{ steps.get-version.outputs.version }}
git push --follow-tags

0 comments on commit fdcd118

Please sign in to comment.