Skip to content

Merge pull request #2 from Logflare/chore/add-org-scope #4

Merge pull request #2 from Logflare/chore/add-org-scope

Merge pull request #2 from Logflare/chore/add-org-scope #4

name: Publish dev package
on:
push:
branches:
- main
paths:
- logflare-js/**
defaults:
run:
working-directory: ./logflare-js
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
uses: actions/setup-node@v1
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Action"
- run: npm ci
- run: npm test
- run: npm run build
- run: npm pack --dry-run
- name: Publish dev package to npm
run: npm publish --access public --tag dev-$(echo ${GITHUB_SHA} | cut -c1-8)
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}