Skip to content

Commit

Permalink
Merge dc4222e into 27178f5
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Sep 1, 2021
2 parents 27178f5 + dc4222e commit 8f3348a
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 2 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,58 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: 'patch'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
- run: |
git config user.name "github-actions"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install dependencies
run: npm install

- name: Verify PAT
run: npm run verify-pat -- --pat ${{ secrets.VSCE_PAT }}

- name: Update version number
run: |
npm version ${{ github.event.inputs.version }} -m "Release v%s"
echo "npm_package_version=$(<./out/version.txt)" >> $GITHUB_ENV
- name: Run tests
run: xvfb-run -a npm test

- name: Package
run: npm run package

- name: Push tag
run: git push && git push --tags

- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: ./out/package.vsix
bodyFile: "./out/RELEASE.md"
tag: ${{ env.npm_package_version }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@

All notable changes to the "php-docblocker" extension will be documented in this file.

## [Unreleased]
- Add GitHub workflow to prepare and publish releases

## [2.3.0] - 2021-10-23
- Add support for PHP8 union types in function params - Thanks @tianyiw2013
- Add support for PHP8 union types in function return types - Thanks @tianyiw2013
Expand Down

0 comments on commit 8f3348a

Please sign in to comment.