mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
* [AI] Publish loot-core (@actual-app/core) nightly first in workflow * [autofix.ci] apply automated fixes * Refactor imports and update configuration - Updated .oxfmtrc.json to change "parent" to ["parent", "subpath"]. - Removed unnecessary blank lines in various TypeScript files to improve code readability. - Adjusted import order in reports and rules files for consistency. * Add workflow steps to pack and publish the core package nightly * Remove nightly tag from npm publish command in workflow for core package * Update post-build script comment to reflect correct workspace command for loot-core declarations --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
name: Publish npm packages
|
|
|
|
# # Npm packages are published for every new tag
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
build-and-pack:
|
|
runs-on: ubuntu-latest
|
|
name: Build and pack npm packages
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Pack the core package
|
|
run: |
|
|
yarn workspace @actual-app/core pack --filename @actual-app/core.tgz
|
|
|
|
- name: Build Web
|
|
run: yarn build:server
|
|
|
|
- name: Pack the web and server packages
|
|
run: |
|
|
yarn workspace @actual-app/web pack --filename @actual-app/web.tgz
|
|
yarn workspace @actual-app/sync-server pack --filename @actual-app/sync-server.tgz
|
|
|
|
- name: Build API
|
|
run: yarn build:api
|
|
|
|
- name: Pack the api package
|
|
run: |
|
|
yarn workspace @actual-app/api pack --filename @actual-app/api.tgz
|
|
|
|
- name: Upload package artifacts
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: npm-packages
|
|
path: |
|
|
packages/loot-core/@actual-app/core.tgz
|
|
packages/desktop-client/@actual-app/web.tgz
|
|
packages/sync-server/@actual-app/sync-server.tgz
|
|
packages/api/@actual-app/api.tgz
|
|
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
name: Publish npm packages
|
|
needs: build-and-pack
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Download the artifacts
|
|
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
with:
|
|
name: npm-packages
|
|
|
|
- name: Setup node and npm registry
|
|
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
|
with:
|
|
node-version: 22
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Publish Core
|
|
run: |
|
|
npm publish loot-core/@actual-app/core.tgz --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Publish Web
|
|
run: |
|
|
npm publish desktop-client/@actual-app/web.tgz --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Publish Sync-Server
|
|
run: |
|
|
npm publish sync-server/@actual-app/sync-server.tgz --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Publish API
|
|
run: |
|
|
npm publish api/@actual-app/api.tgz --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|