Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test
# Must run tsc first to generate the .d.ts files.
- run: yarn tsc
working-directory: .
working-directory: ${{ github.workspace }}
- run: yarn build
# Version it with the version in the tag and upload it to a draft release.
- run: yarn version --new-version ${{ needs.split-tag.outputs.version }}
- name: Set version
run: |
node -e "const fs=require('fs'); const pkg=JSON.parse(fs.readFileSync('package.json')); pkg.version='${{ needs.split-tag.outputs.version }}'; fs.writeFileSync('package.json', JSON.stringify(pkg,null,2)+'\n');"
echo "Set version to ${{ needs.split-tag.outputs.version }}"
- run: yarn pack
- uses: softprops/action-gh-release@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ jobs:
- run: yarn test
id: test
if: success() || failure()
# Run tsc from repository root to generate shared .d.ts files for all plugins
- run: yarn tsc
working-directory: .
working-directory: ${{ github.workspace }}
if: success() || failure()
# Build the plugin
- run: yarn build
Expand Down