Skip to content

Commit

Permalink
ci: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wChenonly committed Dec 15, 2023
1 parent 32f9379 commit ab920b9
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🎉 Release
name: Release

on:
push:
Expand All @@ -7,36 +7,37 @@ on:

jobs:
release:
permissions:
id-token: write
contents: write
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 # Uncomment this if you're using pnpm

- name: Set node
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: lts/*
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
continue-on-error: true
- name: Generate changelog
run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install
run: pnpm install --no-frozen-lockfile
- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Config npm
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > dist/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm build

- name: Publish to npm
run: cd dist && pnpm run publish:npm
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit ab920b9

Please sign in to comment.