Skip to content

Commit

Permalink
ci(project): update gh action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlomoh committed Aug 28, 2024
1 parent 951487f commit becac51
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-official-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
paths:
- 'apps/official-website/**'
- 'packages/hooks/**'
- 'packages/viewer/**'
- 'package*.json'
- '.github/workflows/deploy-official-website.yaml'

Expand All @@ -17,7 +19,7 @@ env:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/version-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Version and Release

on:
push:
branches:
- main

jobs:
versioning:
name: Versioning and Publishing to NPM
environment: packages-releasing
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build packages
run: npx nx affected --targets build --exclude vctrl/official-website,official-website-e2e

- name: Bump versions and publish to NPM
run: npx nx release -y
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit becac51

Please sign in to comment.