Skip to content

Commit

Permalink
feat: make it v3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnehelland committed Oct 10, 2022
1 parent ad806e0 commit 7a003a0
Show file tree
Hide file tree
Showing 15 changed files with 21,240 additions and 23,322 deletions.
28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pull Request Check
on:
pull_request:
types: [opened, reopened, ready_for_review]

concurrency:
group: pr-${{ github.ref }}-1
cancel-in-progress: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.2
- name: Dry Run Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --dryRun --branches ${{ steps.branch-name.outputs.current_branch }}
28 changes: 21 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
name: Semantic release
name: Release
on:
push:
branches:
- main
- studioV3

concurrency:
group: release-${{ github.ref }}-1
cancel-in-progress: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:coverage
run: npm ci --legacy-peer-deps
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.2
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --branches main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --branches ${{ steps.branch-name.outputs.current_branch }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules
# builds
build
dist
lib

# misc
.DS_Store
Expand Down
Binary file added .parcel-cache/data.mdb
Binary file not shown.
Binary file added .parcel-cache/lock.mdb
Binary file not shown.
17 changes: 17 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"branches": [
"main",
{
"name": "studioV3",
"channel": "studiov3"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
}
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 7a003a0

Please sign in to comment.