Skip to content

1. Add support for device firmware and arduinoData attributes. #60

1. Add support for device firmware and arduinoData attributes.

1. Add support for device firmware and arduinoData attributes. #60

Workflow file for this run

name: Publish npm package
on:
push:
paths-ignore:
- 'README.md'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: npm ci
# - run: npm test
- name: Get package main version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.1.0
- name: Generate release version
run: |
echo "RELEASE_VERSION=${{ steps.package-version.outputs.current-version }}-prerelease.$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
- name: Set package version
run: npm --no-git-tag-version version $RELEASE_VERSION
- name: Tag release
run: |
git tag $RELEASE_VERSION
git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY $RELEASE_VERSION
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}