Skip to content

Commit

Permalink
chore: rename default branch [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Jul 30, 2024
1 parent a325a14 commit 7b91fd8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 48 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
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

- run: npm run lint

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

- 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
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
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, windows-latest]
Expand All @@ -19,13 +19,14 @@ jobs:
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 }}

- run: npm install

- run: npm run lint

- run: npm run build

- run: npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"devDependencies": {
"@babel/eslint-parser": "7.24.7",
"@eik/semantic-release-config": "^1.0.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"eslint": "8.57.0",
Expand All @@ -52,7 +53,7 @@
"eslint-plugin-prettier": "5.1.3",
"prettier": "3.3.2",
"rollup": "4.18.0",
"semantic-release": "23.1.1",
"semantic-release": "^23.1.1",
"tap": "18.7.2"
}
}
27 changes: 0 additions & 27 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 7b91fd8

Please sign in to comment.