2024-01-22 09:25:22 -06:00
|
|
|
name: On Release Created (Publish misskey-js)
|
2024-01-22 09:19:43 -06: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-05-04 06:56:14 -05:00
|
|
|
node-version: [20.12.2]
|
2024-01-22 09:19:43 -06:00
|
|
|
|
|
|
|
steps:
|
2024-02-16 01:32:49 -06:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2024-01-22 09:25:22 -06:00
|
|
|
with:
|
|
|
|
submodules: true
|
2024-01-22 09:19:43 -06:00
|
|
|
- name: Install pnpm
|
2024-05-20 04:55:42 -05:00
|
|
|
uses: pnpm/action-setup@v4
|
2024-01-22 09:19:43 -06:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2024-07-14 07:29:57 -05:00
|
|
|
uses: actions/setup-node@v4.0.3
|
2024-01-22 09:19:43 -06: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 }}
|