Skip to content

Fix buildChangeSet to look at the ref branch #7

Fix buildChangeSet to look at the ref branch

Fix buildChangeSet to look at the ref branch #7

Workflow file for this run

name: Build and release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout release branch
run: |
git config --global user.name "Stainless Bot"
git config --global user.email "stainless-bot@users.noreply.github.com"
git checkout release
git merge --no-ff main
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Lint code
run: npm run lint
- name: Run tests
run: npm run test
- name: Compile
run: npm run compile
- name: Commit and push build files
run: |
git add -f ./build
git commit -m "Build sources"
git push origin release
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: 'release-${{ github.run_id }}'
name: 'Release ${{ github.run_id }}'
body: 'Auto-generated release'