Skip to content

0.1.11

0.1.11 #27

# build_and_deploy_svgfiles2js.yml
name: Build and Deploy svgfiles2js
on: [push]
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Automatic update of the github release
if: github.ref_type == 'tag'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
- name: clean and install
run: npm ci
- name: Build and check svgfiles2js
env:
BASE_PATH: '/svgfiles2js'
run: |
npm run ci
- name: Publish
if: github.ref_type == 'tag'
run: npm run gh-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}