chore: update deploy-site workflow #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website | |
on: | |
push: | |
branches: | |
- deploy | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
packages: write | |
steps: | |
- name: Checkout formBuilder | |
uses: actions/checkout@v3 | |
with: | |
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 }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Update website dependencies | |
run: | | |
cd kevinchappell/formBuilder-site | |
npm update formBuilder formBuilder-languages | |
npm version ${{ steps.get-version.outputs.version }} | |
git push --follow-tags |