Skip to content

Commit

Permalink
Merge pull request #4 from DISIC/dev
Browse files Browse the repository at this point in the history
restricting release to preprod and main
  • Loading branch information
HamzaKhait authored Mar 20, 2024
2 parents 16bcd5e + f058aca commit 5274a98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/realease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release

on:
push:
branches:
- "preprod"
- "main"

jobs:
release:
Expand All @@ -17,6 +20,7 @@ jobs:
node-version: 20
- run: npm ci --force
- run: npm run build
- run: cp package.json package-lock.json dist/
- run: tar -czvf wce-api.tar.gz -C dist .
- run: npx semantic-release
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ lerna-debug.log*
.env
.env.development
.env.test

#compressed files
*.tar.gz

0 comments on commit 5274a98

Please sign in to comment.