1.1.4 - Update flipper-ui and dependencies #171
Workflow file for this run
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 package | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.15.0' | |
registry-url: 'https://registry.npmjs.org' | |
always-auth: true | |
- name: Install dependencies | |
run: yarn | |
- name: Run lint | |
run: yarn lint | |
publish-npm: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish new version to NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.15.0' | |
registry-url: https://registry.npmjs.org/ | |
always-auth: true | |
- name: Install dependencies | |
run: yarn | |
- name: Build package | |
run: yarn build | |
- name: Run pre-publish | |
run: node pre-publish.js | |
- name: Publish package on npm | |
run: npm publish ./dist --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |