Slack Send v2.0.0-rc.2 #2
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
name: Publish | |
on: | |
release: | |
types: [published, edited] | |
jobs: | |
build: | |
name: Build and tag a new version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the current code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
- name: Configure the runtime node | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
cache-dependency-path: package-lock.json | |
node-version-file: .nvmrc | |
- name: Install project dependencies | |
run: npm ci | |
- name: Build a production release | |
run: npm run build | |
- name: Distribute the latest tagged release | |
uses: teunmooij/github-versioned-release@v1.2.1 | |
with: | |
template: javascript-action | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |