Release tag before publish #13
This file contains hidden or 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: Release tag before publish | |
| on: workflow_dispatch | |
| jobs: | |
| release-tag: | |
| name: Create new release tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| ref: ${{ github.ref }} | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install npm eslint | |
| run: npm install -g eslint | |
| - name: npm install packages | |
| run: npm install | |
| - name: Check manual changes on CHANGELOG.md | |
| run: | | |
| if git diff --exit-code origin/master -- CHANGELOG.md; then | |
| message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' | |
| echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" | |
| exit 1 | |
| fi | |
| - name: Bump version | |
| run: .github/workflows/release-tag-bump-version.sh | |
| - name: clean | |
| run: rm -f debugger/*.lua; rm -f debugger/*.lua.map; rm -f extension/*.js; rm -f extension/*.js.map; rm -f *.vsix | |
| - name: npm run lint, build and vsce package within npm run bundle | |
| run: npm run bundle | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: vsix | |
| path: second-local-lua-debugger-vscode-*.vsix |