chore: rename dirs to remove logflare name (#26) #5
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 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 }} |