Skip to content

Commit

Permalink
updating actions (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
c1rrus committed Nov 21, 2024
1 parent c19e213 commit 236917e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Build and test
name: Build and test PR

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

strategy:
matrix:
node-version: [18.x]
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run tests
run: npm test
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build, test & release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Run tests
run: npm test

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 236917e

Please sign in to comment.