Skip to content

Commit

Permalink
ci: update cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Sep 24, 2023
1 parent df9991a commit db7f1e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
node-version: latest
registry-url: https://registry.npmjs.org

- run: npm ci
- name: Setup Bun
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- run: npm publish
- name: Publish to npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub release
run: bunx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "deadnews-template-typescript",
"description": "TypeScript Project Template",
"publisher": "DeadNews <aurczpbgr@mozmail.com>",
"homepage": "https://github.com/DeadNews/deadnews-template-typescript",
"license": "MIT",
"module": "src/index.ts",
"type": "module",
Expand Down

0 comments on commit db7f1e5

Please sign in to comment.