1.19.0 #148
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: Build and release | |
on: | |
push: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: set package.json version | |
uses: menduz/oddish-action@master | |
with: | |
deterministic-snapshot: true | |
only-update-versions: true | |
- name: Install | |
run: npm ci --legacy-peer-deps | |
- name: Build static-local | |
run: npm run build:static-local | |
- name: Build for CDN | |
run: npm run build | |
- name: Move static-local into main build | |
run: mv ./static-local ./build/static-local | |
- name: Publish | |
uses: menduz/oddish-action@master | |
with: | |
cwd: './build' | |
deterministic-snapshot: true | |
registry-url: 'https://registry.npmjs.org' | |
access: public | |
gitlab-token: ${{ secrets.GITLAB_CDN_DEPLOYER_TOKEN }} | |
gitlab-pipeline-url: ${{ secrets.GITLAB_CDN_DEPLOYER_URL }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |