L-168 Combine releasing and autotagging (#5) #4
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
name: Releases | |
on: | |
push: | |
branches: main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Build ZIP archive | |
run: npm run build | |
- name: Tag new version | |
id: tagger | |
uses: phish108/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN}} | |
bump: minor | |
with-v: true | |
release-branch: main | |
- name: Create release on Github | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tagger.outputs.new-tag }} | |
artifacts: build/logtail-aws-lambda.zip |