Skip to content

- Added support for SceneGallery and SceneGalleryImage types #17

- Added support for SceneGallery and SceneGalleryImage types

- Added support for SceneGallery and SceneGalleryImage types #17

Workflow file for this run

name: NPM Publish
on:
push:
tags:
- '*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set version from tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: print version number
run: echo ${{ env.RELEASE_VERSION }}
- uses: actions/setup-node@v2
with:
node-version: 16
- name: configure git
run: |
git config user.email "[email protected]"
git config user.name "Plattar"
- name: set pre-release version
run: npm version --prefix plattar-api ${{ env.RELEASE_VERSION }}
- name: write version.js
run: rm -rf plattar-api/version.js && echo 'module.exports = "${{ env.RELEASE_VERSION }}";' > plattar-api/version.js
- name: copy README
run: cp README.md plattar-api/README.md
- name: copy graphics
run: cp -R graphics plattar-api/
- name: NPM Build
run: npm run --prefix plattar-api clean:build
- uses: JS-DevTools/npm-publish@v1
with:
package: ./plattar-api/package.json
token: ${{ secrets.NPM_PUBLISH_KEY }}
access: 'public'