chore: initial release #1
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" | |
- run: npm ci | |
- name: Install dependencies | |
run: npm install | |
- name: Build package | |
run: npm run build | |
# Create the new release: | |
# - name: Bump version & push | |
# run: | | |
# git config --global user.name 'Automated publish' | |
# git config --global user.email 'jabirdev@users.noreply.github.com' | |
# npm version patch | |
# git push && git push --tags | |
- name: Publish to npm | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: npm publish --access public |