refactor(examples): make imports esm compatible (#1964) #1937
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: npm | |
on: | |
push: | |
branches: [master] | |
jobs: | |
npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org/' | |
cache: yarn | |
- run: npm i -g yarn@1 | |
- run: yarn config set network-timeout 300000 | |
- run: yarn | |
- run: yarn build | |
- run: npx pleb@6 publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |