rollingversions_publish_approved #158
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: Deploy New Version | |
on: | |
repository_dispatch: | |
types: [rollingversions_publish_approved] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: npm install, build, test, publish | |
run: | | |
node --version | |
npm --version | |
npm ci | |
npm run build --if-present | |
env: | |
CI: true | |
NODE_OPTIONS: --openssl-legacy-provider | |
- name: rollingversions check | |
run: npx rollingversions publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# run: | | |
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
# npx rollingversions publish -d -g ${{ secrets.GITHUB_TOKEN }} | |
# npx rollingversions publish -g ${{ secrets.GITHUB_TOKEN }} |