Skip to content

Commit

Permalink
add build composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Aug 29, 2024
1 parent bba0251 commit faca68d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: build

runs:
using: composite
steps:
- run: npm run build
shell: bash
- run: echo "VERSION=$(node -p "require('./package.json').version")" >> "$GITHUB_ENV"
shell: bash
6 changes: 2 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: npm run build
- uses: ./.github/actions/build
- run: npx vsce package
- run: echo "VERSION=$(node -p "require('./package.json').version")" >> "$GITHUB_ENV"
- run: gh release create v$VERSION --generate-notes yaml-embedded-languages-$VERSION.vsix
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -42,9 +41,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: npm run build
- uses: ./.github/actions/build
- run: npx vsce package --pre-release
- run: echo "VERSION=$(node -p "require('./package.json').version")" >> "$GITHUB_ENV"
- run: gh release create v$VERSION --prerelease --generate-notes yaml-embedded-languages-$VERSION.vsix
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit faca68d

Please sign in to comment.