This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
packwatch/.github/workflows/release.yml
renovate[bot] 6817fe9783
chore(deps): update actions/checkout action to v2 (#274)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marc Cataford <c.marcandre@gmail.com>
2021-06-05 10:58:26 -04:00

30 lines
654 B
YAML

name: packwatch release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: [build, lint, test]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Node setup
uses: actions/setup-node@v2
with:
node-version: 14
- name: Prepare
run: yarn && yarn build
- name: get tag
id: get_tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
- name: Release
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn publish --access public --tag latest --new-version ${{steps.get_tag.outputs.tag}}