Skip to content

Commit

Permalink
chore(frontend): add release workflow (#78)
Browse files Browse the repository at this point in the history
* chore(frontend): prepare skeleton for frontend release workflow

* chore(frontend): move everything connected with release to a separate workflow

* chore(frontend): use dummy script instead of real publishing for testing

* fix(frontend): update to the new Typescript version

* chore(frontend): remove unnecessary lines

* chore(frontend): update package registrations

* chore(frontend): add package registrations

* chore(frontend): fix bump script

* fix(frontend): use correct package names for registrations

* chore(frontend): fix Mac-related bug
  • Loading branch information
Lodin authored Sep 1, 2021
1 parent 009db19 commit fa43f40
Show file tree
Hide file tree
Showing 10 changed files with 11,917 additions and 9,838 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/frontend-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Frontend Release

on:
release:
types: [published]

defaults:
run:
working-directory: frontend

jobs:
testing:
name: Release
runs-on: ubuntu-20.04
timeout-minutes: 5

steps:
- name: Checkout Project Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use NodeJS LTS
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run check
- name: Test
run: npm run test
env:
CI: true
- name: Bump New Version
run: |
npm run bump -- -v ${{ github.event.release.tag_name }}
git commit -m "chore(release): ${{ github.event.release.tag_name }}"
git push
env:
GIT_AUTHOR_NAME: Vaadin Bot
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: Publish
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit fa43f40

Please sign in to comment.