Skip to content

Commit

Permalink
use build position
Browse files Browse the repository at this point in the history
  • Loading branch information
krkabol committed Sep 11, 2024
1 parent f2637e6 commit 3122c0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Release
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*.*'

jobs:
build:
Expand All @@ -18,19 +18,19 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '16'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build
run: npm run build

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: ./dist
path: ./dist

release:
needs: build
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref }}
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
body: 'Autocreated release from GitHub Actions.'
draft: false
Expand All @@ -59,6 +59,6 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/bundle.js
asset_path: ./dist/bundle.js
asset_name: bundle.js
asset_content_type: application/javascript

0 comments on commit 3122c0a

Please sign in to comment.