diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5997445ecd..940e30b846 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,15 +2,15 @@ name: CI on: [pull_request] jobs: test: - name: Test build process on node ${{ matrix.node_version }} + name: Test build process on node ${{ matrix.node-version }} runs-on: ubuntu-latest strategy: matrix: - node_version: [8, 10, 11, 12, 13, 14] + node-version: [12, 14, 16] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: pre-install diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index baaa89f13b..10d44b4772 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -8,12 +8,12 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'fomantic/Fomantic-UI' steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: ref: develop - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 registry-url: https://registry.npmjs.org/ - name: pre-setup run: sh ./scripts/preinstall.sh @@ -28,5 +28,5 @@ jobs: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN npm publish --tag nightly env: - NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION}} CI: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..f16ed5ceca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release +on: + release: + types: [released] +jobs: + publish: + name: Build new Release + runs-on: ubuntu-latest + if: github.repository == 'fomantic/Fomantic-UI' + steps: + - uses: actions/checkout@v2 + with: + ref: master + - uses: actions/setup-node@v2 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - name: pre-setup + run: sh ./scripts/preinstall.sh + - name: install dependencies + run: npm install --ignore-scripts + - name: fomantic install & build + run: npx gulp install + - name: publish to npm + run: | + npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN + npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION}} + CI: true