UNPKG

http-repository-cache

Version:

A library for making HTTP requests using the repository pattern with an built in caching system.

43 lines (42 loc) 1.3 kB
name: Publish run-name: Publish release ${{ github.event.release.tag_name }} by @${{ github.actor }} on: release: types: - published jobs: call-unit-tests-workflow: uses: ./.github/workflows/unit-tests.yml publish: name: Publish needs: call-unit-tests-workflow runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 name: Install pnpm with: version: 9 run_install: false - name: Set up Node.js 22.x uses: actions/setup-node@v4 with: node-version: 22.x registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - name: Install dependencies run: pnpm install - name: install tsc run: pnpm install -g typescript - name: Build run: pnpm build - uses: sergeysova/jq-action@v2 - name: Remove scripts and devDependencies from package.json run: jq 'del(.scripts, .devDependencies)' package.json > publish.package.json && rm package.json && mv publish.package.json package.json - name: Publish run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}