Skip to content

Commit

Permalink
chore: release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Jul 10, 2023
1 parent 1339cf9 commit 2dc7aa7
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,38 @@ on:
- 'v*'

jobs:
release:
Release GitHub:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
- uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v2

- name: Set node
- uses: actions/setup-node@v3
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Publish github
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install
Release npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
registry-url: https://registry.npmjs.org
- run: corepack enable
- run: pnpm install

- name: Publish npm
- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 2dc7aa7

Please sign in to comment.