Skip to content

updated github actions #3

updated github actions

updated github actions #3

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- '*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Run Tests
run: npm test
- name: Create Tarball
run: tar -czvf serverless-openapi-typescript.tgz dist
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: serverless-openapi-typescript.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}