Skip to content

Commit

Permalink
add build workflow, lock node version
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankiewicz committed May 14, 2024
1 parent a9d2fe5 commit ed355a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build
on:
workflow_dispatch:
branches: [ feature/body-event-on-library-loaded ]
jobs:
deployment:
runs-on: node:21
steps:
- uses: actions/checkout@v4
- name: 'Build'
run: yarn && yarn build
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: dist-files
path: |
dist/consent-banner-js/${{ steps.package-version.outputs.current-version}}/styles/light.css
dist/consent-banner-js/${{ steps.package-version.outputs.current-version}}/consent-banner.min.js
dist/consent-banner-js/${{ steps.package-version.outputs.current-version}}/consent-banner.bundle.min.js
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
dev:
image: node
image: node:21
entrypoint:
command: npm run serve
volumes:
Expand Down

0 comments on commit ed355a5

Please sign in to comment.