Merge pull request #1876 from d3fc/remove-changeset #1
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: Release | |
on: | |
push: | |
branches: [ "master" ] | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build-test-lint: | |
name: Build, test, and lint | |
uses: ./.github/workflows/development.yml | |
publish-npm: | |
name: Publish npm package(s) | |
if: github.repository == 'd3fc/d3fc' | |
needs: build-test-lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Setup Node" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.0 | |
registry-url: https://registry.npmjs.org/ | |
- name: "Install dependencies" | |
run: npm ci | |
- name: "Running build" | |
run: npm run build | |
- name: "Publish to npm" | |
id: changesets | |
uses: d3fc/[email protected] | |
with: | |
publish: npm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |