Skip to content

Commit

Permalink
fix: build and publish workflow
Browse files Browse the repository at this point in the history
- Fix branch name for build and publish workflow triggers
- Use major versions for actions
  • Loading branch information
ndoschek committed Dec 5, 2024
1 parent 4d26682 commit 12c6dd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- '!**/*.md'
push:
branches:
- main
- master
paths:
- '.github/workflows/build-ci.yml'
- 'example/**'
Expand All @@ -28,19 +28,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4.2.0
uses: actions/checkout@v4

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

- name: Install tools and libraries
run: sudo apt-get install -y build-essential libx11-dev libxkbfile-dev libsecret-1-dev

- name: Use Python 3.11
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_run:
workflows: ['CI']
types: [completed]
branches: [main]
branches: [master]

permissions:
contents: write
Expand All @@ -19,21 +19,20 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4.2.0
uses: actions/checkout@v4
with:
fetch-depth: 0 # pulls all history and tags for Lerna to detect which packages changed

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

- name: Install tools and libraries
run: sudo apt-get install -y build-essential libx11-dev libxkbfile-dev libsecret-1-dev

- name: Use Python 3.11
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down

0 comments on commit 12c6dd2

Please sign in to comment.