RELEASE #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'RELEASE' | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: version | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: build on branch | |
run: | | |
npm ci | |
npm run build | |
git config --global user.email "opensource@allegro.pl" | |
git config --global user.name "opensource" | |
git checkout -b $VERSION | |
git add dist -f | |
git commit -a -m "$VERSION release" | |
git push origin $VERSION -f | |
env: | |
VERSION: ${{ github.event.inputs.version }} |