Skip to content

chore: rename dirs to remove logflare name (#26) #5

chore: rename dirs to remove logflare name (#26)

chore: rename dirs to remove logflare name (#26) #5

name: Publish JS dev package
on:
push:
branches:
- main
paths:
- js/**
defaults:
run:
working-directory: ./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 }}