Repository navigation
Update logtail/node (#9) #7
This file contains hidden or 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: 22.x | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm test | |
| - name: Build ZIP archive | |
| run: npm run build | |
| - name: Tag new version | |
| id: tagger | |
| uses: phish108/autotag-action@v1.1.64 | |
| 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: "v${{ steps.tagger.outputs.new-tag }}" | |
| artifacts: build/logtail-aws-lambda.zip |