Skip to content

Commit

Permalink
feat: Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
hardope committed Oct 17, 2024
1 parent e9f05d8 commit bbed9ef
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 35 deletions.
53 changes: 23 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
name: turboXpress
name: Release

on:
push:
branches:
- main
- beta

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Dependencies
run: npm ci
permissions:
contents: read
packages: write
pull-requests: write

- name: Build Package
run: npm run build

- name: Publish to npm
uses: actions/upload-artifact@v3
with:
name: npm-package
path: dist/

- name: Create npm Release
run: |
npm publish --access public
echo "## npm Package Published" >> $GITHUB_STEP_SUMMARY
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14'
- run: npm install
- run: npm run build
- run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# turboXpress
# turboXpress

```bash
npm -g install turboxpress

# usage
turbo init
```
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turboxpress",
"version": "1.0.0",
"name": "@turboxpress/turboxpress",
"version": "0.0.0-development",
"description": "A package to initialize a basic Express.js project with turbo speed",
"main": "dist/index.js",
"bin": {
Expand All @@ -21,6 +21,11 @@
},
"files": [
"dist",
"bin"
]
"bin",
"LICENSE",
"README.md"
],
"publishConfig": {
"access": "public"
}
}
6 changes: 6 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
branches: ['main', {
name: 'beta',
prerelease: true
}],
}

0 comments on commit bbed9ef

Please sign in to comment.