2024-01-23 00:25:22 +09:00
|
|
|
name: On Release Created (Publish misskey-js)
|
2024-01-23 00:19:43 +09:00
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-misskey-js:
|
|
|
|
name: Publish misskey-js
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-07-30 09:17:06 +09:00
|
|
|
node-version: [20.16.0]
|
2024-01-23 00:19:43 +09:00
|
|
|
|
|
|
|
steps:
|
2024-02-16 16:32:49 +09:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2024-01-23 00:25:22 +09:00
|
|
|
with:
|
|
|
|
submodules: true
|
2024-01-23 00:19:43 +09:00
|
|
|
- name: Install pnpm
|
2024-05-20 18:55:42 +09:00
|
|
|
uses: pnpm/action-setup@v4
|
2024-01-23 00:19:43 +09:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2024-07-14 21:29:57 +09:00
|
|
|
uses: actions/setup-node@v4.0.3
|
2024-01-23 00:19:43 +09:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'pnpm'
|
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Publish package
|
|
|
|
run: |
|
|
|
|
corepack enable
|
|
|
|
pnpm i --frozen-lockfile
|
|
|
|
pnpm build
|
|
|
|
pnpm --filter misskey-js publish --access public --no-git-checks --provenance
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
|
|
|
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|