v1.2.8 #28
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: Epics-React library CD | |
on: | |
release: | |
types: [created] | |
jobs: | |
# github_npm: | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: read | |
# packages: write | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version: '16.x' | |
# registry-url: 'https://npm.pkg.github.com/' | |
# - name: Install π§ | |
# run: yarn install | |
# - name: Build ποΈ | |
# run: yarn run build | |
# - name: Login Github π | |
# run: | | |
# echo lnls-sirius:https://npm.pkg.github.com/ > ./.npmrc | |
# echo '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' >> ./.npmrc | |
# - name: Publish NPM πͺ | |
# run: npm publish | |
# env: | |
# NPM_TOKEN: ${{ secrets.EPICS_REACT }} | |
npmjs_npm: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install π§ | |
run: yarn install | |
- name: Build ποΈ | |
run: yarn run build | |
- name: NPM registry | |
run: npm set registry https://registry.npmjs.org/ | |
- name: Login npmjs π | |
run: | | |
echo https://registry.npmjs.org/> ./.npmrc | |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc | |
- name: Publish | |
run: npm publish --verbose --access public | |
env: | |
NPM_TOKEN: ${{ secrets.EPICS_REACT_NPMJS }} |