Bump "tested up to" version (#618) #30
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: 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 }} |