Skip to content

Merge pull request #16 from orca-team/mr-test #122

Merge pull request #16 from orca-team/mr-test

Merge pull request #16 from orca-team/mr-test #122

Workflow file for this run

# Install dependence and running `changesets publish`
name: Publish orca-pocket
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'packages/*/package.json'
- 'package.json'
- 'pnpm-lock.yaml'
- '.github/workflows/publish.yml'
jobs:
replace-package-json-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: install dependencies
run: |
npm i pnpm -g
pnpm i --no-frozen-lockfile
- name: publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run pub:only
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Format publish log
id: publish_log
run: node ./log.cjs
env:
CHANGED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
- name: Dingtalk Notify
uses: zcong1993/actions-ding@master
if: always()
with:
dingToken: ${{ secrets.DING_TALK_ACCESS_TOKEN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title":"${{ steps.publish_log.outputs.title }}",
"text": "${{ steps.publish_log.outputs.content }}"
},
"at": {
"isAtAll": false
}
}