1.0.0 #8
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 | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release: | |
name: check version, and release | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup Node | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Packages | |
run: npm install | |
- name: test | |
run: npm run test | |
- name: check can npm-publish | |
run: npx can-npm-publish | |
- name: release | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: make alias package | |
run: npm run make-alias-package | |
- name: check can npm-publish alias | |
run: |+ | |
cd ./alias-package | |
npx can-npm-publish | |
- name: release alias | |
run: |+ | |
cd ./alias-package | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |