chore: refactor apis for clean seperation of app and fs apis #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # When anyone pushes to npm branch in this repo, the package will be published to npm. | |
| # https://docs.npmjs.com/trusted-publishers is active in this repo | |
| name: Publish package to npm | |
| on: | |
| push: | |
| branches: [ npm ] | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| build-tasks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Npm Install | |
| run: | | |
| npm ci | |
| - name: building package | |
| run: | | |
| npm run build | |
| npm run remove-postinstall | |
| - name: Publishing package to npm repository | |
| run: | | |
| npm publish --access public |