Skip to content

feat: scroll into view item matching the active tab (if any) when ope… #43

feat: scroll into view item matching the active tab (if any) when ope…

feat: scroll into view item matching the active tab (if any) when ope… #43

Workflow file for this run

name: publish
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '17'
- name: get semantic release info
run: echo new_release_version=${GITHUB_REF:11} >> $GITHUB_ENV
- name: get manifest version
id: manifest
uses: notiz-dev/github-action-json-property@release
with:
path: 'src/manifest.json'
prop_path: 'version'
- name: check manifest version
if: ${{ steps.manifest.outputs.prop != env.new_release_version }}
run: |
echo "invalid manifest version, expected: ${{env.new_release_version}}, got: ${{steps.manifest.outputs.prop}}"
exit 1
- name: get package version
id: package
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
- name: check package version
if: ${{ steps.package.outputs.prop != env.new_release_version }}
run: |
echo "invalid package version, expected: ${{env.new_release_version}}, got: ${{steps.package.outputs.prop}}"
exit 1
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn setup-ci
- name: update env.json pocketKey
uses: jossef/[email protected]
with:
file: src/env.json
field: pocketKey
value: '${{ secrets.POCKET_KEY }}'
- run: yarn build
- run: yarn zip
- name: upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: pile.zip
tag: ${{ github.ref }}