Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Apr 29, 2024
1 parent 16027ab commit a53f654
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 16 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
# Test
#
###################################################

- name: (TEST) Check Dependencies
run: yarn dependencies:check

Expand All @@ -60,3 +61,34 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info

###################################################
#
# Build
#
###################################################

- name: (BUILD) Transpile to Javascript
run: yarn build

- name: (BUILD) Build Binaries
run: yarn package

###################################################
#
# Release
#
###################################################

- name: (RELEASE) Delete Latest Release
run: gh release delete latest --cleanup-tag --yes || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: (RELEASE) Delete Latest Tag (Local)
run: git tag --delete latest || true

- name: (RELEASE) Create Latest Release
run: gh release create latest --target ${GITHUB_SHA} --latest -t "Latest Release" -n "This is the latest release of this project" ./dist/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
# Test
#
###################################################

- name: (TEST) Check Dependencies
run: yarn dependencies:check

Expand Down
2 changes: 1 addition & 1 deletion .pkgrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "can2x",
"pkg": {
"targets": ["node16-alpine-x64", "node16-linux-x64", "node16-linux-arm64"],
"targets": ["node18-alpine-x64", "node18-linux-x64", "node18-linux-arm64"],
"outputPath": "dist"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"license-checker": "^25.0.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"pkg": "^5.8.1",
"prettier": "^2.8.7",
"prettier-plugin-organize-imports": "^3.2.2",
"source-map-support": "^0.5.21",
Expand All @@ -94,7 +95,7 @@
},
"scripts": {
"prepack": "yarn build",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && sed -i \"s/__VERSION__/$(git rev-parse HEAD)/\" dist/index.js",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && sed -i \"s/__VERSION__/$(git rev-parse HEAD)/\" build/index.js",
"package": "pkg --config .pkgrc.json build/index.js",
"lint:check": "eslint .",
"lint:fix": "eslint . --fix",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"#actions": ["src/actions"],
"#core/*": ["src/core/*"]
},
"outDir": "dist",
"outDir": "build",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": false,
"useUnknownInCatchVariables": false,
Expand Down
Loading

0 comments on commit a53f654

Please sign in to comment.