Skip to content

Commit

Permalink
chore: cleanup .releaserc and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 12, 2024
1 parent 4b283d6 commit eb6c676
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
8 changes: 0 additions & 8 deletions .c8rc

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build and Test

on: [push]
on:
pull_request:
workflow_call:

jobs:
build:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
name: Release

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
- main
- alpha

jobs:
build:
uses: ar-io/ar-io-sdk/.github/workflows/build.yml@alpha
secrets: inherit
release:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
Expand Down
22 changes: 15 additions & 7 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
{
"name": "alpha",
"prerelease": true
},
{
"name": "beta",
"prerelease": true
}
],
"repositoryUrl": "https://github.com/ar-io/ar-io-sdk",
Expand All @@ -16,21 +12,33 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"prepareCmd": "./update-version.sh ${nextRelease.version}"
}
],
[
"@semantic-release/npm",
{
"access": "public"
}
],
[
"@semantic-release/github",
{
"assets": [
"dist/**"
"lib/**",
"bundles/**"
]
}
],
[
"@semantic-release/git",
{
"assets": [
"src/version.ts",
"package.json",
"yarn.lock",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "@ar-io/sdk",
"name": "@ar.io/sdk",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "https://github.com/ar-io/ar-io-sdk.git"
"url": "git+https://github.com/ar-io/ar-io-sdk.git"
},
"main": "./lib/cjs/node/index.js",
"module": "./lib/esm/node/index.js",
"types": "./lib/types/node/index.d.ts",
"browser": "./bundles/web.bundle.min.js",
"type": "module",
"engines": {
"node": ">=18"
},
"license": "AGPL-3.0-or-later",
"files": [
"lib",
"bundles",
Expand Down Expand Up @@ -41,10 +45,6 @@
"browser": "./bundles/web.bundle.min.js"
}
},
"engines": {
"node": ">=18"
},
"license": "AGPL-3.0-or-later",
"scripts": {
"build:web": "node bundle.mjs",
"build:esm": "yarn tsc -p tsconfig.json",
Expand Down
Empty file modified update-version.sh
100644 → 100755
Empty file.

0 comments on commit eb6c676

Please sign in to comment.