Skip to content

Push snap

Push snap #81

Workflow file for this run

name: Push snap
on:
workflow_dispatch:
inputs:
version:
description: 'Which version to publish to snapstore'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set Environment Variables
uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./envvars.for.actions
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: install
run: npm install --legacy-peer-deps
- name: lint
run: npm run lint
- name: build
env:
NODE_OPTIONS: --openssl-legacy-provider
run: npm run build
- name: package
run: npm run package
- name: publish snap
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
store_login: ${{ secrets.STORE_LOGIN }}
snap: "dist/json-tool_${{ github.event.inputs.version }}_amd64.snap"
release: beta,candidate,stable