fix: es module scope #40
This file contains 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
name: Publish to npm | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: Build, bump & publish to npm | |
runs-on: ubuntu-latest | |
container: httptoolkit/act-build-base:v3.0.0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: Clean cache | |
run: npm cache clean --force | |
- name: Remove node_modules | |
run: rm -rf node_modules | |
- run: npm ci --force | |
- name: Install dependencies | |
run: npm install --force | |
- name: Build package | |
run: npm run build | |
- name: Publish to npm | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: npm publish |