Skip to content

Commit

Permalink
chore: rename default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Jul 30, 2024
1 parent c5d903e commit 31a5f76
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 36 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
name: Release and Publish
name: Publish

permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

on:
push:
branches:
- master
- main
- alpha
- beta
- next

jobs:
test:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install
- run: npm install

- name: Lint files
run: npm run lint
- run: npm run lint

- name: Run tests
run: npm run test
- run: npm test

- name: Run semantic release
run: npx semantic-release
- run: npx semantic-release
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Run Lint and Tests
name: Test

on:
push:
branches-ignore:
- master
- main
- alpha
- beta
- next

jobs:
build:
test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
node-version: [18.x, 20.x]
node-version: [18, 20]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "7.24.6",
"@eik/semantic-release-config": "1.0.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"eslint": "8.57.0",
Expand Down
15 changes: 0 additions & 15 deletions release.config.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: '@eik/semantic-release-config',
};

0 comments on commit 31a5f76

Please sign in to comment.