Skip to content

Bump "tested up to" version (#618) #30

Bump "tested up to" version (#618)

Bump "tested up to" version (#618) #30

Workflow file for this run

name: Build and Tag
on:
push:
branches:
- 'main'
permissions:
contents: write
jobs:
wordpress:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: install node v12
uses: actions/setup-node@v3
with:
node-version: 12
- name: Build
run: |
npm ci
npm run build
composer install --no-dev -o
- name: Setup
run: 'echo "VERSION=$(jq -r .version ./package.json)" >> $GITHUB_ENV'
- name: Tag
run: |
echo "Releasing version $VERSION ..."
git config user.name Pantheon Automation
git config user.email [email protected]
git checkout -b "release-$VERSION"
git add -f assets/* vendor/
git commit -m "Release $VERSION"
git tag "$VERSION"
git push --tags
gh release create "$VERSION" -t "$VERSION" --generate-notes -d
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}