Skip to content

Merge pull request #1876 from d3fc/remove-changeset #1

Merge pull request #1876 from d3fc/remove-changeset

Merge pull request #1876 from d3fc/remove-changeset #1

Workflow file for this run

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 }}