fix: async presence (#369) #17
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: Continuous Delivery | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'package.json' | |
jobs: | |
Publish: | |
name: Publishing Dev | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Node.js dependencies | |
run: npm i && npm run build:dev | |
- name: Publish to npm | |
run: | | |
npm version premajor --preid "dev.$(git rev-parse --verify --short HEAD)" --git-tag-version=false | |
npm publish --tag dev | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |