chore(*): bump v0.8.0 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://dev.to/puku0x/github-actions-1mi5 | |
name: Release | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [closed] | |
jobs: | |
release: | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'bump-v') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get version | |
id: get_version | |
env: | |
HEAD_REF: ${{ github.event.pull_request.head.ref }} | |
run: echo ::set-output name=VERSION::${HEAD_REF#bump-v} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: v${{ steps.get_version.outputs.VERSION }} | |
release_name: v${{ steps.get_version.outputs.VERSION }} | |
body: |+ | |
## Bug fixes | |
- | |
## Features | |
- | |
## BREAKING CHANGES | |
- | |
draft: false | |
prerelease: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Publish package | |
run: | | |
yarn install | |
pushd serverless-s3-local | |
yarn publish --access public | |
popd | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |