Skip to content

Fix invalid requiredStatement #16

Fix invalid requiredStatement

Fix invalid requiredStatement #16

Workflow file for this run

name: release
on:
push:
tags:
- v*.*
env:
PLUGIN_NAME: tropiiify
jobs:
create-release:
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies and build
run: |
npm ci
npm run build
- name: Generate version name
id: version
run: echo "::set-output name=version::${{ env.PLUGIN_NAME }}-${{github.ref_name}}"
- name: Create zip file
run: |
mkdir ${{ steps.version.outputs.version }}
cp index.js package.json icon.svg third-party-licenses.txt ${{ steps.version.outputs.version }}
zip -r ${{ steps.version.outputs.version }}.zip ${{ steps.version.outputs.version }}
- name: Create release and upload zip file
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.version.outputs.version }}.zip
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}