2022-05-29 19:47:45 +00:00
|
|
|
name: 'Build and upload distribution'
|
|
|
|
# Builds the action distribution an uploads as an artifact for later download
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2024-01-24 22:50:37 +00:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
2022-05-29 19:47:45 +00:00
|
|
|
- name: Build distribution
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-01-24 22:50:37 +00:00
|
|
|
npm -v
|
|
|
|
node -v
|
2022-05-29 19:47:45 +00:00
|
|
|
npm install
|
2022-08-22 20:24:42 +00:00
|
|
|
npm run build
|
2022-05-29 19:47:45 +00:00
|
|
|
- name: Upload distribution
|
2024-01-24 22:50:37 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-05-29 19:47:45 +00:00
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist/
|